public class QName extends Object implements Serializable
Note: This class allows to carry a namespace prefix but it is not used in the equals() and hashCode() methods.
| Constructor and Description |
|---|
QName(String namespaceURI,
String qName)
Main constructor.
|
QName(String namespaceURI,
String prefix,
String localName)
Main constructor.
|
public QName(String namespaceURI, String prefix, String localName)
namespaceURI - the namespace URIprefix - the namespace prefix, may be nulllocalName - the local namepublic String getNamespaceURI()
public String getPrefix()
public String getLocalName()
public String getQName()
public int hashCode()
hashCode in class ObjectObject.hashCode()public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public String toString()
toString in class ObjectObject.toString()Copyright 1999-2012 The Apache Software Foundation. All Rights Reserved.