Package org.dom4j
Class QName
- java.lang.Object
 - 
- org.dom4j.QName
 
 
- 
- All Implemented Interfaces:
 Serializable
public class QName extends Object implements Serializable
QNamerepresents a qualified name value of an XML element or attribute. It consists of a local name and aNamespaceinstance. This object is immutable.- See Also:
 - Serialized Form
 
 
- 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object object)static QNameget(String name)static QNameget(String qualifiedName, String uri)static QNameget(String name, String prefix, String uri)static QNameget(String name, Namespace namespace)static QNameget(String localName, Namespace namespace, String qualifiedName)DocumentFactorygetDocumentFactory()DOCUMENT ME!StringgetName()DOCUMENT ME!NamespacegetNamespace()DOCUMENT ME!StringgetNamespacePrefix()DOCUMENT ME!StringgetNamespaceURI()DOCUMENT ME!StringgetQualifiedName()DOCUMENT ME!inthashCode()DOCUMENT ME!voidsetDocumentFactory(DocumentFactory documentFactory)StringtoString()protected static voidvalidateNCName(String ncname) 
 - 
 
- 
- 
Method Detail
- 
getName
public String getName()
DOCUMENT ME!- Returns:
 - the local name
 
 
- 
getQualifiedName
public String getQualifiedName()
DOCUMENT ME!- Returns:
 - the qualified name in the format 
prefix:localName 
 
- 
getNamespace
public Namespace getNamespace()
DOCUMENT ME!- Returns:
 - the namespace of this QName
 
 
- 
getNamespacePrefix
public String getNamespacePrefix()
DOCUMENT ME!- Returns:
 - the namespace URI of this QName
 
 
- 
getNamespaceURI
public String getNamespaceURI()
DOCUMENT ME!- Returns:
 - the namespace URI of this QName
 
 
- 
hashCode
public int hashCode()
DOCUMENT ME! 
- 
getDocumentFactory
public DocumentFactory getDocumentFactory()
DOCUMENT ME!- Returns:
 - the factory that should be used for Elements of this QName
 
 
- 
setDocumentFactory
public void setDocumentFactory(DocumentFactory documentFactory)
 
- 
validateNCName
protected static void validateNCName(String ncname)
 
 - 
 
 -