public class QName
extends java.lang.Object
implements java.io.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.Constructor and Description |
---|
QName(java.lang.String name) |
QName(java.lang.String name,
Namespace namespace) |
QName(java.lang.String name,
Namespace namespace,
java.lang.String qualifiedName) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object) |
static QName |
get(java.lang.String name) |
static QName |
get(java.lang.String name,
Namespace namespace) |
static QName |
get(java.lang.String localName,
Namespace namespace,
java.lang.String qualifiedName) |
static QName |
get(java.lang.String qualifiedName,
java.lang.String uri) |
static QName |
get(java.lang.String name,
java.lang.String prefix,
java.lang.String uri) |
DocumentFactory |
getDocumentFactory()
DOCUMENT ME!
|
java.lang.String |
getName()
DOCUMENT ME!
|
Namespace |
getNamespace()
DOCUMENT ME!
|
java.lang.String |
getNamespacePrefix()
DOCUMENT ME!
|
java.lang.String |
getNamespaceURI()
DOCUMENT ME!
|
java.lang.String |
getQualifiedName()
DOCUMENT ME!
|
int |
hashCode()
DOCUMENT ME!
|
void |
setDocumentFactory(DocumentFactory documentFactory) |
java.lang.String |
toString() |
protected static void |
validateNCName(java.lang.String ncname) |
public QName(java.lang.String name)
public QName(java.lang.String name, Namespace namespace)
public QName(java.lang.String name, Namespace namespace, java.lang.String qualifiedName)
public static QName get(java.lang.String name)
public static QName get(java.lang.String name, java.lang.String prefix, java.lang.String uri)
public static QName get(java.lang.String qualifiedName, java.lang.String uri)
public static QName get(java.lang.String localName, Namespace namespace, java.lang.String qualifiedName)
public java.lang.String getName()
public java.lang.String getQualifiedName()
prefix:localName
public Namespace getNamespace()
public java.lang.String getNamespacePrefix()
public java.lang.String getNamespaceURI()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public DocumentFactory getDocumentFactory()
public void setDocumentFactory(DocumentFactory documentFactory)
protected static void validateNCName(java.lang.String ncname)