Package org.apache.xmlgraphics.util
Class QName
- java.lang.Object
-
- org.apache.xmlgraphics.util.QName
-
- All Implemented Interfaces:
Serializable
public class QName extends Object implements 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:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetLocalName()StringgetNamespaceURI()StringgetPrefix()StringgetQName()inthashCode()StringtoString()
-
-
-
Method Detail
-
getNamespaceURI
public String getNamespaceURI()
- Returns:
- the namespace URI
-
getPrefix
public String getPrefix()
- Returns:
- the namespace prefix
-
getLocalName
public String getLocalName()
- Returns:
- the local name
-
getQName
public String getQName()
- Returns:
- the fully qualified name
-
hashCode
public int hashCode()
- Overrides:
hashCodein classObject- See Also:
Object.hashCode()
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classObject- See Also:
Object.equals(java.lang.Object)
-
toString
public String toString()
- Overrides:
toStringin classObject- See Also:
Object.toString()
-
-