Package org.apache.wsil
Class QName
java.lang.Object
org.apache.wsil.QName
- All Implemented Interfaces:
Serializable
This class represents a qualified name, which has a local name
and a namespace URI.
- Version:
- 1.0
- Author:
- Peter Brittenham
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Determine if the input QName equals this QName.boolean
Determine if the QName for the input Node equals this QName.Get the local name.Get the namespace URI.toString()
String representation of this object.
-
Field Details
-
namespaceURI
Namespace URI. -
localName
Local name.
-
-
Constructor Details
-
QName
Create a QName using a namespace URI and a local name.- Parameters:
namespaceURI
- the namespace URIlocalName
- the local name
-
QName
Create a QName using the namespace URI and local name for a node.- Parameters:
node
- the node element
-
-
Method Details
-
getNamespaceURI
Get the namespace URI.- Returns:
- Returns the namespace URI for the QName.
-
getLocalName
Get the local name.- Returns:
- Returns the local name part of the QName.
-
equals
Determine if the input QName equals this QName.- Parameters:
qname
- the QName to compare- Returns:
- Returns true if the QNames are equal.
-
equals
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
String representation of this object.
-