Public Member Functions | |
String | getPrefix () |
String | getURI () |
boolean | equals (Object ob) |
String | toString () |
int | hashCode () |
Static Public Member Functions | |
Namespace | getNamespace (String prefix, String uri) |
Namespace | getNamespace (String uri) |
Static Public Attributes | |
final Namespace | NO_NAMESPACE = new Namespace("", "") |
final Namespace | XML_NAMESPACE |
Static Package Functions | |
[static initializer] |
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.
Elliotte Rusty Harold
Wesley Biggs
|
This static initializer acts as a factory contructor. It sets up storage and required initial values. |
|
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:
|