org.jdom
public final class Namespace extends Object
Version: $Revision: 1.41 $, $Date: 2004/02/27 11:32:57 $
Field Summary | |
---|---|
static Namespace | NO_NAMESPACE Define a Namespace for when not in a namespace |
static Namespace | XML_NAMESPACE Define a Namespace for the standard xml prefix. |
Method Summary | |
---|---|
boolean | equals(Object ob)
This tests for equality - Two Namespaces
are equal if and only if their URIs are byte-for-byte equals.
|
static Namespace | getNamespace(String prefix, String uri)
This will retrieve (if in existence) or create (if not) a
Namespace for the supplied prefix and URI.
|
static Namespace | getNamespace(String uri)
This will retrieve (if in existence) or create (if not) a
Namespace for the supplied URI, and make it usable
as a default namespace, as no prefix is supplied.
|
String | getPrefix()
This returns the prefix mapped to this Namespace .
|
String | getURI()
This returns the namespace URI for this Namespace .
|
int | hashCode()
This returns a probably unique hash code for the Namespace .
|
String | toString()
This returns a String representation of this
Namespace , suitable for use in debugging.
|
Namespace
for when not in a namespaceNamespace
for the standard xml prefix.Namespaces
are equal if and only if their URIs are byte-for-byte equals.
Parameters: ob Object
to compare to this Namespace
.
Returns: boolean
- whether the supplied object is equal to
this Namespace
.
Namespace
for the supplied prefix and URI.
Parameters: prefix String
prefix to map to
Namespace
. uri String
URI of new Namespace
.
Returns: Namespace
- ready to use namespace.
Throws: IllegalNameException if the given prefix and uri make up an illegal namespace name.
Namespace
for the supplied URI, and make it usable
as a default namespace, as no prefix is supplied.
Parameters: uri String
URI of new Namespace
.
Returns: Namespace
- ready to use namespace.
Namespace
.
Returns: String
- prefix for this Namespace
.
Namespace
.
Returns: String
- URI for this Namespace
.
Namespace
.
If two namespaces have the same URI, they are equal and have the same
hash code, even if they have different prefixes.
Returns: int
- hash code for this Namespace
.
String
representation of this
Namespace
, suitable for use in debugging.
Returns: String
- information about this instance.