com.teamkonzept.dom4jb.dom
Class NodeName
java.lang.Object
|
+--com.teamkonzept.dom4jb.dom.NodeName
- Direct Known Subclasses:
- NodeNameNS
- public class NodeName
- extends Object
|
Constructor Summary |
protected |
NodeName(String localName)
Creates new NodeName |
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
NodeName
protected NodeName(String localName)
- Creates new NodeName
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.