Package org.apache.xmlgraphics.util
Class QName
java.lang.Object
org.apache.xmlgraphics.util.QName
- All Implemented Interfaces:
Serializable
Represents a qualified name of an XML element or an XML attribute.
Note: This class allows to carry a namespace prefix but it is not used in the equals() and hashCode() methods.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
QName
Main constructor.- Parameters:
namespaceURI
- the namespace URIprefix
- the namespace prefix, may be nulllocalName
- the local name
-
QName
Main constructor.- Parameters:
namespaceURI
- the namespace URIqName
- the qualified name
-
-
Method Details
-
getNamespaceURI
- Returns:
- the namespace URI
-
getPrefix
- Returns:
- the namespace prefix
-
getLocalName
- Returns:
- the local name
-
getQName
- Returns:
- the fully qualified name
-
hashCode
public int hashCode() -
equals
-
toString
-