org.ozoneDB.xml.dom4j.o3impl
Class DefaultQName
java.lang.Object
org.ozoneDB.xml.dom4j.o3impl.DefaultQName
- All Implemented Interfaces:
- QName, java.io.Serializable
- Direct Known Subclasses:
- O3QName
- public class DefaultQName
- extends java.lang.Object
- implements java.io.Serializable, QName
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.
- Version:
- $Revision: 1.1 $
- Author:
- James Strachan
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
cachePerThread
protected static transient java.lang.ThreadLocal cachePerThread
DefaultQName
public DefaultQName(java.lang.String name,
NodeFactory factory)
DefaultQName
public DefaultQName(java.lang.String name,
Namespace namespace,
NodeFactory nodeFactory)
DefaultQName
public DefaultQName(java.lang.String name,
Namespace namespace,
java.lang.String qualifiedName,
NodeFactory nodeFactory)
getName
public java.lang.String getName()
- Specified by:
getName
in interface QName
- Returns:
- the local name
getQualifiedName
public java.lang.String getQualifiedName()
- Specified by:
getQualifiedName
in interface QName
- Returns:
- the qualified name in the format
prefix:localName
getNamespace
public Namespace getNamespace()
- Specified by:
getNamespace
in interface QName
- Returns:
- the namespace of this QName
getNamespacePrefix
public java.lang.String getNamespacePrefix()
- Specified by:
getNamespacePrefix
in interface QName
- Returns:
- the namespace URI of this QName
getNamespaceURI
public java.lang.String getNamespaceURI()
- Specified by:
getNamespaceURI
in interface QName
- Returns:
- the namespace URI of this QName
hashCode
public int hashCode()
- Specified by:
hashCode
in interface QName
- Returns:
- the hash code based on the qualified name and the URI of the
namespace.
equals
public boolean equals(java.lang.Object object)
- Specified by:
equals
in interface QName
toString
public java.lang.String toString()
- Specified by:
toString
in interface QName
getDocumentFactory
public DocumentFactory getDocumentFactory()
- Deprecated. Use getNodeFactory() instead
- Specified by:
getDocumentFactory
in interface QName
- Returns:
- the factory that should be used for Elements of this QName
getNodeFactory
public NodeFactory getNodeFactory()
- Specified by:
getNodeFactory
in interface QName
setDocumentFactory
public void setDocumentFactory(DocumentFactory documentFactory)
- Deprecated. Use setNodeFactory(NodeFactory) instead
- Specified by:
setDocumentFactory
in interface QName
setNodeFactory
public void setNodeFactory(NodeFactory nodeFactory)
- Specified by:
setNodeFactory
in interface QName
Copyright © 2004 The Ozone Database Project - www.ozone-db.org. All Rights Reserved.