-
- All Implemented Interfaces:
public final class QualifiedNameNamespace-aware XML node qualified names.
Used for comparison and display purposes. Uses the XML namespace and local name if present in the Node. Falls back to using the default node name if a namespace isn't present.
-
-
Constructor Summary
Constructors Constructor Description QualifiedName(Node node)
-
Method Summary
Modifier and Type Method Description final StringgetNamespaceUri()final StringgetLocalName()final StringgetNodeName()Booleanequals(Object other)When both do not have a namespace, check equality using node name. IntegerhashCode()When a namespace isn't present, return the hash of the node name. StringtoString()Returns the qualified name using Clark-notation if a namespace is present, otherwise returns the node name. -
-
Constructor Detail
-
QualifiedName
QualifiedName(Node node)
-
-
Method Detail
-
getNamespaceUri
final String getNamespaceUri()
-
getLocalName
final String getLocalName()
-
getNodeName
final String getNodeName()
-
equals
Boolean equals(Object other)
When both do not have a namespace, check equality using node name. Otherwise, check equality using both namespace and local name.
-
hashCode
Integer hashCode()
When a namespace isn't present, return the hash of the node name. Otherwise, return the hash of the namespace and local name.
-
-
-
-