Package org.apache.wsil
Class QName
- java.lang.Object
-
- org.apache.wsil.QName
-
- All Implemented Interfaces:
java.io.Serializable
public class QName extends java.lang.Object implements java.io.SerializableThis class represents a qualified name, which has a local name and a namespace URI.- Version:
- 1.0
- Author:
- Peter Brittenham
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringlocalNameLocal name.protected java.lang.StringnamespaceURINamespace URI.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(QName qname)Determine if the input QName equals this QName.booleanequals(org.w3c.dom.Node node)Determine if the QName for the input Node equals this QName.java.lang.StringgetLocalName()Get the local name.java.lang.StringgetNamespaceURI()Get the namespace URI.java.lang.StringtoString()String representation of this object.
-
-
-
Constructor Detail
-
QName
public QName(java.lang.String namespaceURI, java.lang.String localName)Create a QName using a namespace URI and a local name.- Parameters:
namespaceURI- the namespace URIlocalName- the local name
-
QName
public QName(org.w3c.dom.Node node)
Create a QName using the namespace URI and local name for a node.- Parameters:
node- the node element
-
-
Method Detail
-
getNamespaceURI
public java.lang.String getNamespaceURI()
Get the namespace URI.- Returns:
- Returns the namespace URI for the QName.
-
getLocalName
public java.lang.String getLocalName()
Get the local name.- Returns:
- Returns the local name part of the QName.
-
equals
public boolean equals(QName qname)
Determine if the input QName equals this QName.- Parameters:
qname- the QName to compare- Returns:
- Returns true if the QNames are equal.
-
equals
public boolean equals(org.w3c.dom.Node node)
Determine if the QName for the input Node equals this QName.- Parameters:
node- the DOM node- Returns:
- Returns true if the specified node was the same QName.
-
toString
public java.lang.String toString()
String representation of this object.- Overrides:
toStringin classjava.lang.Object- Returns:
- Returns the string representation of this object.
-
-