public class XmlNameSpace
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.String |
_name |
java.lang.String |
_prefix
The prefix for node names in the name space.
|
static XmlNameSpace |
ANY
For situations while reading where there may be a name space or there may not be and if
there is it does not matter what it is.
|
static XmlNameSpace |
XML |
static XmlNameSpace |
XMLNS |
Constructor and Description |
---|
XmlNameSpace(java.lang.String prefix,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
static boolean |
isSame(XmlNameSpace ns1,
XmlNameSpace ns2) |
java.lang.String |
makeDeclaration() |
java.lang.String |
toString() |
public final java.lang.String _prefix
When reading, this is the prefix actually encountered. When writing, this is the preferred prefix to be used. The actual prefix may be different if there is another namespace with the same prefix. Therefore, the prefix is not used for testing whether two namespaces are the same.
public final java.lang.String _name
public static final XmlNameSpace ANY
public static final XmlNameSpace XMLNS
public static final XmlNameSpace XML
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static boolean isSame(XmlNameSpace ns1, XmlNameSpace ns2)
public java.lang.String makeDeclaration()