Public Member Functions | |
Attribute (String name, String value, Namespace namespace) | |
Attribute (String name, String value, int type, Namespace namespace) | |
Attribute (String name, String value) | |
Attribute (String name, String value, int type) | |
Element | getParent () |
Document | getDocument () |
Attribute | detach () |
String | getName () |
Attribute | setName (String name) |
String | getQualifiedName () |
String | getNamespacePrefix () |
String | getNamespaceURI () |
Namespace | getNamespace () |
Attribute | setNamespace (Namespace namespace) |
String | getValue () |
Attribute | setValue (String value) |
int | getAttributeType () |
Attribute | setAttributeType (int type) |
String | toString () |
final boolean | equals (Object ob) |
final int | hashCode () |
Object | clone () |
int | getIntValue () throws DataConversionException |
long | getLongValue () throws DataConversionException |
float | getFloatValue () throws DataConversionException |
double | getDoubleValue () throws DataConversionException |
boolean | getBooleanValue () throws DataConversionException |
Static Public Attributes | |
final int | UNDECLARED_ATTRIBUTE = 0 |
final int | CDATA_ATTRIBUTE = 1 |
final int | ID_ATTRIBUTE = 2 |
final int | IDREF_ATTRIBUTE = 3 |
final int | IDREFS_ATTRIBUTE = 4 |
final int | ENTITY_ATTRIBUTE = 5 |
final int | ENTITIES_ATTRIBUTE = 6 |
final int | NMTOKEN_ATTRIBUTE = 7 |
final int | NMTOKENS_ATTRIBUTE = 8 |
final int | NOTATION_ATTRIBUTE = 9 |
final int | ENUMERATED_ATTRIBUTE = 10 |
Protected Member Functions | |
Attribute () | |
Attribute | setParent (Element parent) |
Protected Attributes | |
String | name |
String | value |
int | type = UNDECLARED_ATTRIBUTE |
Object | parent |
Attribute
defines behavior for an XML attribute, modeled in Java. Methods allow the user to obtain the value of the attribute as well as namespace information.
Jason Hunter
Elliotte Rusty Harold
Wesley Biggs
|
Default, no-args constructor for implementations to use if needed. |
|
This will create a new
|
|
This will create a new
|
|
This will create a new
Note: This actually explicitly puts the
|
|
This will create a new
Note: This actually explicitly puts the
|
|
This will return a clone of this
|
|
This detaches the
|
|
This tests for equality of this
|
|
This will return the actual declared type of this
|
|
This gets the value of the attribute, in
|
|
This retrieves the owning
|
|
This gets the value of the attribute, in
|
|
This gets the value of the attribute, in
|
|
This gets the value of the attribute, in
|
|
This gets the value of the attribute, in
|
|
This will retrieve the local name of the
To obtain the namespace prefix for this attribute, the
|
|
This will return this
|
|
This will retrieve the namespace prefix of the
|
|
This returns the URI mapped to this
|
|
This will return the parent of this
|
|
This will retrieve the qualified name of the
To obtain the local name of the attribute, the
To obtain the namespace prefix for this attribute, the
|
|
This will return the actual textual value of this
|
|
This returns the hash code for this
|
|
This will set the type of the
|
|
This sets the local name of the
|
|
This sets this
|
|
This will set the parent of this
|
|
This will set the value of the
|
|
This returns a
|
|
Attribute type: the attribute value is a string.
|
|
Attribute type: the attribute value is a list of entity names.
|
|
Attribute type: the attribute value is the name of an entity.
|
|
Attribute type: the attribute value is a name token from an enumeration.
|
|
Attribute type: the attribute value is a unique identifier.
|
|
Attribute type: the attribute value is a reference to a unique identifier.
|
|
Attribute type: the attribute value is a list of references to unique identifiers.
|
|
The local name of the |
|
Attribute type: the attribute value is a name token. According to SAX 2.0 specification, attributes of enumerated types should be reported as "NMTOKEN" by SAX parsers. But the major parsers (Xerces and Crimson) provide specific values that permit to recognize them as ENUMERATED_ATTRIBUTE.
|
|
Attribute type: the attribute value is a list of name tokens.
|
|
Attribute type: the attribute value is the name of a notation.
|
|
Parent element, or null if none |
|
The type of the |
|
Attribute type: the attribute has not been declared or type is unknown.
|
|
The value of the |