| Modifier and Type | Field and Description |
|---|---|
| public static final int | CDATA_TYPE
Attribute type: the attribute value is a string. |
| private static final String | |
| public static final int | ENTITIES_TYPE
Attribute type: the attribute value is a list of entity names. |
| public static final int | ENTITY_TYPE
Attribute type: the attribute value is the name of an entity. |
| public static final int | ENUMERATED_TYPE
Attribute type: the attribute value is a name token from an enumeration. |
| public static final int | ID_TYPE
Attribute type: the attribute value is a unique identifier. |
| public static final int | IDREF_TYPE
Attribute type: the attribute value is a reference to a unique identifier. |
| public static final int | IDREFS_TYPE
Attribute type: the attribute value is a list of references to unique identifiers. |
| protected String | name
The local name of the |
| protected transient Namespace | |
| public static final int | NMTOKEN_TYPE
Attribute type: the attribute value is a name token. |
| public static final int | NMTOKENS_TYPE
Attribute type: the attribute value is a list of name tokens. |
| public static final int | NOTATION_TYPE
Attribute type: the attribute value is the name of a notation. |
| protected Element | parent
Parent element, or null if none |
| protected int | type
The type of the |
| public static final int | UNDECLARED_TYPE
Attribute type: the attribute has not been declared or type is unknown. |
| protected String | value
The value of the |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | |
| public | Attribute(final String
String name of Attribute.String value for new attribute.int type for new attribute.Namespace namespace for new attribute.This will create a new |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | Returns: Object - clone of this Attribute.Overrides java. Attribute.
|
| public Attribute | Returns: Attribute - this Attribute modified.This detaches the |
| public final boolean | Returns: boolean - whether the Attribute is
equal to the supplied Object.Object to compare to.Overrides java. Attribute to the supplied
Object.
|
| public int | Returns: int - type for this attribute.This will return the actual declared type of this
|
| public boolean | Returns: boolean value of attribute.This gets the effective boolean value of the attribute, or throws a
|
| public Document | Returns: Document owning this Attribute, or null.This retrieves the owning |
| public double | Returns: double value of attribute.This gets the value of the attribute, in
|
| public float | Returns: float value of attribute.This gets the value of the attribute, in
|
| public int | Returns: int value of attribute.This gets the value of the attribute, in
|
| public long | Returns: long value of attribute.This gets the value of the attribute, in
|
| public String | Returns: String - name of this attribute,
without any namespace prefix.This will retrieve the local name of the
|
| public Namespace | Returns: Namespace - Namespace object for this AttributeThis will return this |
| public String | Returns: String - namespace prefix of this
attribute.This will retrieve the namespace prefix of the
|
| public String | Returns: String - namespace URI for this Attribute.This returns the URI mapped to this |
| public Element | |
| public String | Returns: String - full name for this element.This will retrieve the qualified name of the |
| public String | Returns: String - value for this attribute.This will return the actual textual value of this
|
| public final int | Returns: int - hash code.Overrides java. Attribute.
|
| private void | |
| public Attribute | Returns: Attribute - this Attribute modified.int type for the attribute.This will set the type of the |
| public Attribute | |
| public Attribute | Returns: Element - the element modified.the new namespace namespace)This sets this |
| protected Attribute | |
| public Attribute | |
| public String | Returns: String - information about the
AttributeOverrides java. String representation of the
Attribute, suitable for debugging.
|
| private void |
| CDATA_TYPE | back to summary |
|---|---|
| public static final int CDATA_TYPE Attribute type: the attribute value is a string.
| |
| CVS_ID | back to summary |
|---|---|
| private static final String CVS_ID | |
| ENTITIES_TYPE | back to summary |
|---|---|
| public static final int ENTITIES_TYPE Attribute type: the attribute value is a list of entity names.
| |
| ENTITY_TYPE | back to summary |
|---|---|
| public static final int ENTITY_TYPE Attribute type: the attribute value is the name of an entity.
| |
| ENUMERATED_TYPE | back to summary |
|---|---|
| public static final int ENUMERATED_TYPE Attribute type: the attribute value is a name token from an enumeration.
| |
| ID_TYPE | back to summary |
|---|---|
| public static final int ID_TYPE Attribute type: the attribute value is a unique identifier.
| |
| IDREF_TYPE | back to summary |
|---|---|
| public static final int IDREF_TYPE Attribute type: the attribute value is a reference to a unique identifier.
| |
| IDREFS_TYPE | back to summary |
|---|---|
| public static final int IDREFS_TYPE Attribute type: the attribute value is a list of references to unique identifiers.
| |
| name | back to summary |
|---|---|
| protected String name The local name of the | |
| namespace | back to summary |
|---|---|
| protected transient Namespace namespace The | |
| NMTOKEN_TYPE | back to summary |
|---|---|
| public static final int NMTOKEN_TYPE 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
| |
| NMTOKENS_TYPE | back to summary |
|---|---|
| public static final int NMTOKENS_TYPE Attribute type: the attribute value is a list of name tokens.
| |
| NOTATION_TYPE | back to summary |
|---|---|
| public static final int NOTATION_TYPE Attribute type: the attribute value is the name of a notation.
| |
| parent | back to summary |
|---|---|
| protected Element parent Parent element, or null if none | |
| type | back to summary |
|---|---|
| protected int type The type of the | |
| UNDECLARED_TYPE | back to summary |
|---|---|
| public static final int UNDECLARED_TYPE Attribute type: the attribute has not been declared or type is unknown.
| |
| value | back to summary |
|---|---|
| protected String value The value of the | |
| Attribute | back to summary |
|---|---|
| protected Attribute() Default, no-args constructor for implementations to use if needed. | |
| Attribute | back to summary |
|---|---|
| public Attribute(final String name, final String value, final Namespace namespace) This will create a new
| |
| Attribute | back to summary |
|---|---|
| public Attribute(final String name, final String value, final int type, final Namespace namespace) This will create a new
| |
| Attribute | back to summary |
|---|---|
| public Attribute(final String name, final String value) This will create a new Note This actually explicitly puts the
| |
| Attribute | back to summary |
|---|---|
| public Attribute(final String name, final String value, final int type) This will create a new Note This actually explicitly puts the
| |
| clone | back to summary |
|---|---|
| public Object clone() Overrides java. This will return a clone of this
| |
| detach | back to summary |
|---|---|
| public Attribute detach() This detaches the
| |
| equals | back to summary |
|---|---|
| public final boolean equals(final Object ob) Overrides java. This tests for equality of this
| |
| getAttributeType | back to summary |
|---|---|
| public int getAttributeType() This will return the actual declared type of this
| |
| getBooleanValue | back to summary |
|---|---|
| public boolean getBooleanValue() throws DataConversionException This gets the effective boolean value of the attribute, or throws a
| |
| getDocument | back to summary |
|---|---|
| public Document getDocument() This retrieves the owning
| |
| getDoubleValue | back to summary |
|---|---|
| public double getDoubleValue() throws DataConversionException This gets the value of the attribute, in
| |
| getFloatValue | back to summary |
|---|---|
| public float getFloatValue() throws DataConversionException This gets the value of the attribute, in
| |
| getIntValue | back to summary |
|---|---|
| public int getIntValue() throws DataConversionException This gets the value of the attribute, in
| |
| getLongValue | back to summary |
|---|---|
| public long getLongValue() throws DataConversionException This gets the value of the attribute, in
| |
| getName | back to summary |
|---|---|
| public String getName() This will retrieve the local name of the
To obtain the namespace prefix for this
attribute, the
| |
| getNamespace | back to summary |
|---|---|
| public Namespace getNamespace() This will return this
| |
| getNamespacePrefix | back to summary |
|---|---|
| public String getNamespacePrefix() This will retrieve the namespace prefix of the
| |
| getNamespaceURI | back to summary |
|---|---|
| public String getNamespaceURI() This returns the URI mapped to this
| |
| getParent | back to summary |
|---|---|
| public Element getParent() This will return the parent of this
| |
| getQualifiedName | back to summary |
|---|---|
| public String getQualifiedName() 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
| |
| getValue | back to summary |
|---|---|
| public String getValue() This will return the actual textual value of this
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Overrides java. This returns the hash code for this
| |
| readObject | back to summary |
|---|---|
| private void readObject(final ObjectInputStream in) throws IOException, ClassNotFoundException | |
| setAttributeType | back to summary |
|---|---|
| public Attribute setAttributeType(final int type) This will set the type of the
| |
| setName | back to summary |
|---|---|
| public Attribute setName(final String name) This sets the local name of the
| |
| setNamespace | back to summary |
|---|---|
| public Attribute setNamespace(Namespace namespace) This sets this
| |
| setParent | back to summary |
|---|---|
| protected Attribute setParent(final Element parent) This will set the parent of this | |
| setValue | back to summary |
|---|---|
| public Attribute setValue(final String value) This will set the value of the
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. This returns a
| |
| writeObject | back to summary |
|---|---|
| private void writeObject(final ObjectOutputStream out) throws IOException | |