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 Node
public String getNodeValue() throws DOMException
getNodeValue
in interface Node
DOMException
public void setNodeValue(String inValue) throws DOMException
setNodeValue
in interface Node
DOMException
public short getNodeType()
getNodeType
in interface Node
public Node getParentNode()
getParentNode
in interface Node
public NodeList getChildNodes()
getChildNodes
in interface Node
public Node getFirstChild()
getFirstChild
in interface Node
public Node getLastChild()
getLastChild
in interface Node
public Node getPreviousSibling()
getPreviousSibling
in interface Node
public Node getNextSibling()
getNextSibling
in interface Node
public NamedNodeMap getAttributes()
getAttributes
in interface Node
public Document getOwnerDocument()
getOwnerDocument
in interface Node
public Node insertBefore(Node node, Node node1) throws DOMException
insertBefore
in interface Node
DOMException
public Node replaceChild(Node node, Node node1) throws DOMException
replaceChild
in interface Node
DOMException
public Node removeChild(Node node) throws DOMException
removeChild
in interface Node
DOMException
public Node appendChild(Node node) throws DOMException
appendChild
in interface Node
DOMException
public boolean hasChildNodes()
hasChildNodes
in interface Node
public boolean isSupported(String inFeature, String inVersion)
isSupported
in interface Node
public String getNamespaceURI()
getNamespaceURI
in interface Node
public String getPrefix()
public void setPrefix(String inValue) throws DOMException
setPrefix
in interface Node
DOMException
public String getLocalName()
getLocalName
in interface Node
public boolean hasAttributes()
hasAttributes
in interface Node
public String getBaseURI()
getBaseURI
in interface Node
public short compareDocumentPosition(Node node) throws DOMException
compareDocumentPosition
in interface Node
DOMException
public String getTextContent() throws DOMException
getTextContent
in interface Node
DOMException
public void setTextContent(String string) throws DOMException
setTextContent
in interface Node
DOMException
public boolean isSameNode(Node node)
isSameNode
in interface Node
public String lookupPrefix(String string)
lookupPrefix
in interface Node
public boolean isDefaultNamespace(String string)
isDefaultNamespace
in interface Node
public String lookupNamespaceURI(String inPrefix)
lookupNamespaceURI
in interface Node
public boolean isEqualNode(Node node)
isEqualNode
in interface Node
public Object getFeature(String string, String string1)
getFeature
in interface Node
public Object setUserData(String string, Object object, UserDataHandler userDataHandler)
setUserData
in interface Node
public Object getUserData(String string)
getUserData
in interface Node
protected void setElement(XMLTag inOwner)
protected XMLTag getElement()
jataylor@hairyfatguy.com