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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getLocalName() |
String |
getNamespaceURI() |
String |
getPrefix() |
String |
getQName() |
int |
hashCode() |
String |
toString() |
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 Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public String toString()
toString
in class Object
Object.toString()
Copyright © 2020 Apache Software Foundation. All rights reserved.