net.n3.nanoxml
Class XMLAttribute

java.lang.Object
  extended by net.n3.nanoxml.XMLAttribute

 class XMLAttribute
extends java.lang.Object

An attribute in an XML element. This is an internal class.

Version:
$Name: RELEASE_2_2_1 $, $Revision: 1.4 $
Author:
Marc De Scheemaecker
See Also:
XMLElement

Field Summary
private  java.lang.String fullName
          The full name of the attribute.
private  java.lang.String name
          The short name of the attribute.
private  java.lang.String namespace
          The namespace URI of the attribute.
private  java.lang.String type
          The type of the attribute.
private  java.lang.String value
          The value of the attribute.
 
Constructor Summary
XMLAttribute(java.lang.String fullName, java.lang.String name, java.lang.String namespace, java.lang.String value, java.lang.String type)
          Creates a new attribute.
 
Method Summary
(package private)  java.lang.String getFullName()
          Returns the full name of the attribute.
(package private)  java.lang.String getName()
          Returns the short name of the attribute.
(package private)  java.lang.String getNamespace()
          Returns the namespace of the attribute.
(package private)  java.lang.String getType()
          Returns the type of the attribute.
(package private)  java.lang.String getValue()
          Returns the value of the attribute.
(package private)  void setValue(java.lang.String value)
          Sets the value of the attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fullName

private java.lang.String fullName
The full name of the attribute.


name

private java.lang.String name
The short name of the attribute.


namespace

private java.lang.String namespace
The namespace URI of the attribute.


value

private java.lang.String value
The value of the attribute.


type

private java.lang.String type
The type of the attribute.

Constructor Detail

XMLAttribute

XMLAttribute(java.lang.String fullName,
             java.lang.String name,
             java.lang.String namespace,
             java.lang.String value,
             java.lang.String type)
Creates a new attribute.

Parameters:
fullName - the non-null full name
name - the non-null short name
namespace - the namespace URI, which may be null
value - the value of the attribute
type - the type of the attribute
Method Detail

getFullName

java.lang.String getFullName()
Returns the full name of the attribute.


getName

java.lang.String getName()
Returns the short name of the attribute.


getNamespace

java.lang.String getNamespace()
Returns the namespace of the attribute.


getValue

java.lang.String getValue()
Returns the value of the attribute.


setValue

void setValue(java.lang.String value)
Sets the value of the attribute.

Parameters:
value - the new value.

getType

java.lang.String getType()
Returns the type of the attribute.