public static final class XmlNode.NamespaceAwareName extends java.lang.Object implements XmlNode.NodeName
XmlNode.NodeName for a namespace aware attribute.| Modifier and Type | Method and Description |
|---|---|
void |
addToNode(org.w3c.dom.Element to,
java.lang.String withValue)
Adds a new attribute of this name to a xml element with a value.
|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getLocalName()
The local name.
|
int |
hashCode() |
boolean |
isInNamespace(java.lang.String namespaceURI)
Returns true if this attribute name has a namespace declaration and that namespapce is
the same as provided, false otherwise.
|
java.lang.String |
toString() |
public boolean isInNamespace(@NonNull
java.lang.String namespaceURI)
XmlNode.NodeNameisInNamespace in interface XmlNode.NodeNamepublic void addToNode(@NonNull
org.w3c.dom.Element to,
java.lang.String withValue)
XmlNode.NodeNameaddToNode in interface XmlNode.NodeNameto - the xml element to add the attribute to.withValue - the new attribute's value.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(@Nullable
java.lang.Object o)
equals in class java.lang.Object@NonNull public java.lang.String toString()
toString in class java.lang.Object@NonNull public java.lang.String getLocalName()
XmlNode.NodeNamegetLocalName in interface XmlNode.NodeName