Public Methods | |
String | getPrefix () |
String | getURI () |
boolean | equals (Object ob) |
String | toString () |
int | hashCode () |
Static Public Methods | |
Namespace | getNamespace (String prefix, String uri) |
Namespace | getNamespace (String uri) |
Static Public Attributes | |
final Namespace | NO_NAMESPACE = new Namespace("", "") |
final Namespace | XML_NAMESPACE |
Namespace
defines both a factory for creating XML namespaces, and a namespace itself. This class represents an XML namespace in Java.
Elements and Attributes containing Namespaces can be serialized; however the Namespace class itself does not implement java.io.Serializable
. This works because the Element and Attribute classes handle serialization of their Namespaces manually. The classes use the getNamespace() method on deserialization to ensure there may be only one unique Namespace object for any unique prefix/uri pair, something needed for efficiency reasons.
|
This tests for equality - Two
|
|
This will retrieve (if in existence) or create (if not) a
|
|
This will retrieve (if in existence) or create (if not) a
|
|
This returns the prefix mapped to this
|
|
This returns the namespace URI for this
|
|
This returns a probably unique hash code for the
|
|
This returns a
|
|
Define a |
|
Initial value: new Namespace("xml", "http://www.w3.org/XML/1998/namespace") |