org.ozoneDB.xml.dom4j.o3impl
Class DefaultQName

java.lang.Object
  extended byorg.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

Field Summary
protected static java.lang.ThreadLocal cachePerThread
           
 
Constructor Summary
DefaultQName(java.lang.String name, Namespace namespace, NodeFactory nodeFactory)
           
DefaultQName(java.lang.String name, Namespace namespace, java.lang.String qualifiedName, NodeFactory nodeFactory)
           
DefaultQName(java.lang.String name, NodeFactory factory)
           
 
Method Summary
 boolean equals(java.lang.Object object)
           
 DocumentFactory getDocumentFactory()
          Deprecated. Use getNodeFactory() instead
 java.lang.String getName()
           
 Namespace getNamespace()
           
 java.lang.String getNamespacePrefix()
           
 java.lang.String getNamespaceURI()
           
 NodeFactory getNodeFactory()
           
 java.lang.String getQualifiedName()
           
 int hashCode()
           
 void setDocumentFactory(DocumentFactory documentFactory)
          Deprecated. Use setNodeFactory(NodeFactory) instead
 void setNodeFactory(NodeFactory nodeFactory)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

cachePerThread

protected static transient java.lang.ThreadLocal cachePerThread
Constructor Detail

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)
Method Detail

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.