com.teamkonzept.dom4jb.dom
Class NodeName

java.lang.Object
  |
  +--com.teamkonzept.dom4jb.dom.NodeName
Direct Known Subclasses:
NodeNameNS

public class NodeName
extends Object


Field Summary
protected static String ALL
           
protected  int hashCode
           
protected  String localName
           
protected static WeakHashMap names
           
static String NS_NAMESPACE_URI
           
static String NS_PREFIX
           
static String XML_NAMESPACE_URI
           
static String XML_PREFIX
           
 
Constructor Summary
protected NodeName(String localName)
          Creates new NodeName
 
Method Summary
 int compareTo(NodeName other)
           
 boolean equals(Object obj)
           
static NodeName getInstance(String localName)
           
protected static String getKey(String namespaceURI, String prefix, String localName)
           
 String getLocalName()
           
 String getNamespaceURI()
           
 String getPrefix()
           
 String getQualifiedName()
           
 int hashCode()
          Returns a hashcode for this string.
 NodeName setPrefix(String prefix)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

names

protected static final WeakHashMap names

ALL

protected static final String ALL

XML_PREFIX

public static final String XML_PREFIX
See Also:
Constant Field Values

XML_NAMESPACE_URI

public static final String XML_NAMESPACE_URI
See Also:
Constant Field Values

NS_PREFIX

public static final String NS_PREFIX
See Also:
Constant Field Values

NS_NAMESPACE_URI

public static final String NS_NAMESPACE_URI
See Also:
Constant Field Values

localName

protected final String localName

hashCode

protected int hashCode
Constructor Detail

NodeName

protected NodeName(String localName)
Creates new NodeName

Method Detail

getLocalName

public String getLocalName()

getQualifiedName

public String getQualifiedName()

getNamespaceURI

public String getNamespaceURI()

getPrefix

public String getPrefix()

setPrefix

public NodeName setPrefix(String prefix)

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

compareTo

public int compareTo(NodeName other)

hashCode

public int hashCode()
Returns a hashcode for this string. The hashcode for a NamedNode object is computed as
 s[0]*31^(n-1) + s[1]*31^(n-2) + ... + s[n-1]
 
using int arithmetic, where s[i] is the ith character of the string [prefix:]namespaceURI:localNam, n is the length of the string, and ^ indicates exponentiation.

Overrides:
hashCode in class Object
Returns:
a hash code value for this object.

getInstance

public static NodeName getInstance(String localName)

getKey

protected static String getKey(String namespaceURI,
                               String prefix,
                               String localName)

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2001-2003 Team-Konzept GmbH & CO KG. All Rights Reserved.