|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.novell.xml.util.NamespaceName
Class to encapsulate a namespace URI string This caches the URI strings and uses integers internally for quick equality comparisons
Field Summary | |
static NamespaceName |
NULL_NAMESPACE
A convenience constant for the null namespace |
static NamespaceName |
XML_NAMESPACE
String representing default XML namespace URI |
static NamespaceName |
XMLNS_NAMESPACE
String representing the xmlns namespace URI |
Constructor Summary | |
NamespaceName(String namespaceName)
Construct a NamespaceName object for the passed URI |
Method Summary | |
int |
compareTo(Object rhs)
Compare this object to another object for order |
boolean |
equals(NamespaceName rhs)
Does this object equal the passed NamespaceName? |
boolean |
equals(Object rhs)
Does this object equal the passed object? |
boolean |
equals(String rhs)
Does this object's URI value match the passed string |
String |
getString()
Return the string value of this NamespaceName |
int |
hashCode()
Return a hash code for this object |
boolean |
isEmpty()
Return true if this NamespaceName represents an empty namespace URI. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final NamespaceName XML_NAMESPACE
public static final NamespaceName XMLNS_NAMESPACE
public static final NamespaceName NULL_NAMESPACE
Constructor Detail |
public NamespaceName(String namespaceName)
namespaceName
- The namespace URIMethod Detail |
public String getString()
public boolean isEmpty()
public int hashCode()
public boolean equals(Object rhs)
rhs
- The object to compare against
public boolean equals(NamespaceName rhs)
rhs
- The NamespaceName to compare against
public boolean equals(String rhs)
rhs
- The URI string to compare against
public int compareTo(Object rhs)
compareTo
in interface Comparable
rhs
- The object to compare against. This will
order NamespaceNames and Strings
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |