public class QName extends Object implements Serializable
QName
represents a qualified name value of an XML element
or attribute. It consists of a local name and a Namespace
instance. This object is immutable.
Modifier and Type | Field and Description |
---|---|
protected static QNameCache |
cache |
private DocumentFactory |
documentFactory
The document factory used for this QName if specified or null
|
private int |
hashCode
A cached version of the hashcode for efficiency
|
private String |
name
The local name of the element or attribute
|
private Namespace |
namespace
The Namespace of this element or attribute
|
private String |
qualifiedName
The qualified name of the element or attribute
|
Constructor and Description |
---|
QName(String name) |
QName(String name,
Namespace namespace) |
QName(String name,
Namespace namespace,
String qualifiedName) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
static QName |
get(String name) |
static QName |
get(String name,
Namespace namespace) |
static QName |
get(String localName,
Namespace namespace,
String qualifiedName) |
static QName |
get(String qualifiedName,
String uri) |
static QName |
get(String name,
String prefix,
String uri) |
DocumentFactory |
getDocumentFactory() |
String |
getName() |
Namespace |
getNamespace() |
String |
getNamespacePrefix() |
String |
getNamespaceURI() |
String |
getQualifiedName() |
int |
hashCode() |
private void |
readObject(ObjectInputStream in) |
void |
setDocumentFactory(DocumentFactory documentFactory) |
String |
toString() |
private void |
writeObject(ObjectOutputStream out) |
protected static transient QNameCache cache
private String qualifiedName
private int hashCode
private DocumentFactory documentFactory
public String getQualifiedName()
prefix:localName
public Namespace getNamespace()
public String getNamespacePrefix()
public String getNamespaceURI()
public int hashCode()
public DocumentFactory getDocumentFactory()
public void setDocumentFactory(DocumentFactory documentFactory)
private void writeObject(ObjectOutputStream out) throws IOException
IOException
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses