Attribute defines an XML attribute. An attribute may have a
name, an optional namespace and a value.
| Modifier and Type | Method and Description |
|---|---|
| public Object | Returns: the attribute dataAccesses the data of this attribute which may implement data typing
bindings such as |
| public Namespace | Returns: theNamespace associated with this nodeReturns the |
| public String | Returns: the prefix of theNamespace of this element or an
empty StringReturns the namespace prefix of this element if one exists otherwise an
empty |
| public String | Returns: the URI for theNamespace of this element or an
empty StringReturns the URI mapped to the namespace of this element if one exists
otherwise an empty |
| public QName | Returns: theQName associated with this attributeReturns the |
| public String | Returns: the fully qualified name of the elementReturns the fully qualified name of this element. |
| public String | |
| public void | setData(Object
the attribute data data)Sets the data value of this attribute if this element supports data
binding or calls |
| public void | setNamespace(Namespace
is the namespace)Namespace to associate with this elementSets the |
| public void |
| getData | back to summary |
|---|---|
| public Object getData() Accesses the data of this attribute which may implement data typing
bindings such as
| |
| getNamespace | back to summary |
|---|---|
| public Namespace getNamespace() Returns the
| |
| getNamespacePrefix | back to summary |
|---|---|
| public String getNamespacePrefix() Returns the namespace prefix of this element if one exists otherwise an
empty
| |
| getNamespaceURI | back to summary |
|---|---|
| public String getNamespaceURI() Returns the URI mapped to the namespace of this element if one exists
otherwise an empty
| |
| getQName | back to summary |
|---|---|
| public QName getQName() Returns the
| |
| getQualifiedName | back to summary |
|---|---|
| public String getQualifiedName() Returns the fully qualified name of this element.
This will be the same as the value returned from getNamespacePrefix() + ":" + getName()will be returned.
| |
| getValue | back to summary |
|---|---|
| public String getValue() Returns the value of the attribute. This method returns the same value as
the
| |
| setData | back to summary |
|---|---|
| public void setData(Object data) Sets the data value of this attribute if this element supports data
binding or calls
| |
| setNamespace | back to summary |
|---|---|
| public void setNamespace(Namespace namespace) Sets the
| |
| setValue | back to summary |
|---|---|
| public void setValue(String value) Sets the value of this attribute or this method will throw an
| |