public class XMLAttribute extends Object implements Node, Cloneable, Comparable<XMLAttribute>
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE| Constructor and Description |
|---|
XMLAttribute(String inName,
Object inValue) |
XMLAttribute(String inName,
Object inValue,
XMLNamespace inNamespace) |
XMLAttribute(XMLName inName,
Object inValue) |
| Modifier and Type | Method and Description |
|---|---|
Node |
appendChild(Node node) |
XMLAttribute |
clone() |
Node |
cloneNode(boolean b) |
short |
compareDocumentPosition(Node node) |
int |
compareTo(XMLAttribute inAttr2)
XMLAttribute equality and comparison is based on the name.
|
NamedNodeMap |
getAttributes() |
String |
getBaseURI() |
NodeList |
getChildNodes() |
protected XMLTag |
getElement() |
String |
getEscapedValue() |
Object |
getFeature(String string,
String string1) |
Node |
getFirstChild() |
Node |
getLastChild() |
String |
getLocalName()
Returns the local part of the qualified name of this node.
|
String |
getName() |
XMLNamespace |
getNamespace() |
String |
getNamespaceURI()
Convenience method to get the namespace URI
|
Node |
getNextSibling() |
String |
getNodeName()
Returns the attribute name.
|
short |
getNodeType() |
String |
getNodeValue() |
Document |
getOwnerDocument() |
Node |
getParentNode() |
String |
getPrefix()
The namespace prefix of this attribute, or null if it is unspecified.
|
Node |
getPreviousSibling() |
String |
getQualifiedName() |
String |
getTextContent() |
String |
getUnscapedValue() |
Object |
getUserData(String string) |
String |
getValue() |
boolean |
hasAttributes() |
boolean |
hasChildNodes() |
Node |
insertBefore(Node node,
Node node1) |
boolean |
isDefaultNamespace(String string) |
boolean |
isEqualNode(Node node) |
boolean |
isSameNode(Node node) |
boolean |
isSupported(String inFeature,
String inVersion) |
String |
lookupNamespaceURI(String inPrefix)
Look up the namespace URI associated to the given prefix, starting from this node.
|
String |
lookupPrefix(String string) |
void |
normalize() |
Node |
removeChild(Node node) |
Node |
replaceChild(Node node,
Node node1) |
protected void |
setElement(XMLTag inOwner) |
void |
setName(String inName)
Sets the attribute's local name
|
void |
setNamespace(XMLNamespace inNamespace) |
void |
setNodeValue(String inValue) |
void |
setPrefix(String inValue)
The namespace prefix of this attribute, or null if it is unspecified.
|
void |
setTextContent(String string) |
Object |
setUserData(String string,
Object object,
UserDataHandler userDataHandler) |
void |
setValue(Object inValue) |
public XMLAttribute(String inName, Object inValue)
public XMLAttribute(String inName, Object inValue, XMLNamespace inNamespace)
public XMLAttribute(XMLName inName, Object inValue)
public XMLAttribute clone()
public int compareTo(XMLAttribute inAttr2)
compareTo in interface Comparable<XMLAttribute>public String getQualifiedName()
public String getUnscapedValue()
public String getEscapedValue()
public XMLNamespace getNamespace()
public void setNamespace(XMLNamespace inNamespace)
public String getNodeName()
getNodeName in interface Nodepublic String getNodeValue() throws DOMException
getNodeValue in interface NodeDOMExceptionpublic void setNodeValue(String inValue) throws DOMException
setNodeValue in interface NodeDOMExceptionpublic short getNodeType()
getNodeType in interface Nodepublic Node getParentNode()
getParentNode in interface Nodepublic NodeList getChildNodes()
getChildNodes in interface Nodepublic Node getFirstChild()
getFirstChild in interface Nodepublic Node getLastChild()
getLastChild in interface Nodepublic Node getPreviousSibling()
getPreviousSibling in interface Nodepublic Node getNextSibling()
getNextSibling in interface Nodepublic NamedNodeMap getAttributes()
getAttributes in interface Nodepublic Document getOwnerDocument()
getOwnerDocument in interface Nodepublic Node insertBefore(Node node, Node node1) throws DOMException
insertBefore in interface NodeDOMExceptionpublic Node replaceChild(Node node, Node node1) throws DOMException
replaceChild in interface NodeDOMExceptionpublic Node removeChild(Node node) throws DOMException
removeChild in interface NodeDOMExceptionpublic Node appendChild(Node node) throws DOMException
appendChild in interface NodeDOMExceptionpublic boolean hasChildNodes()
hasChildNodes in interface Nodepublic boolean isSupported(String inFeature, String inVersion)
isSupported in interface Nodepublic String getNamespaceURI()
getNamespaceURI in interface Nodepublic String getPrefix()
public void setPrefix(String inValue) throws DOMException
setPrefix in interface NodeDOMExceptionpublic String getLocalName()
getLocalName in interface Nodepublic boolean hasAttributes()
hasAttributes in interface Nodepublic String getBaseURI()
getBaseURI in interface Nodepublic short compareDocumentPosition(Node node) throws DOMException
compareDocumentPosition in interface NodeDOMExceptionpublic String getTextContent() throws DOMException
getTextContent in interface NodeDOMExceptionpublic void setTextContent(String string) throws DOMException
setTextContent in interface NodeDOMExceptionpublic boolean isSameNode(Node node)
isSameNode in interface Nodepublic String lookupPrefix(String string)
lookupPrefix in interface Nodepublic boolean isDefaultNamespace(String string)
isDefaultNamespace in interface Nodepublic String lookupNamespaceURI(String inPrefix)
lookupNamespaceURI in interface Nodepublic boolean isEqualNode(Node node)
isEqualNode in interface Nodepublic Object getFeature(String string, String string1)
getFeature in interface Nodepublic Object setUserData(String string, Object object, UserDataHandler userDataHandler)
setUserData in interface Nodepublic Object getUserData(String string)
getUserData in interface Nodeprotected void setElement(XMLTag inOwner)
protected XMLTag getElement()
jataylor@hairyfatguy.com