| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static HashMap | namespaces
Factory list of namespaces. |
| public static final Namespace | NO_NAMESPACE
Define a |
| private String | prefix
The prefix mapped to this namespace |
| private String | uri
The URI for this namespace |
| public static final Namespace | XML_NAMESPACE
Define a |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: boolean - whether the supplied object is equal to
this Namespace.Object to compare to this Namespace.Overrides java. Namespaces
are equal if and only if their URIs are byte-for-byte equals.
|
| public static Namespace | Returns: Namespace - ready to use namespace.String prefix to map to
Namespace.String URI of new Namespace.This will retrieve (if in existence) or create (if not) a
|
| public static Namespace | Returns: Namespace - ready to use namespace.String URI of new Namespace.This will retrieve (if in existence) or create (if not) a
|
| public String | Returns: String - prefix for this Namespace.This returns the prefix mapped to this |
| public String | |
| public int | Returns: int - hash code for this Namespace.Overrides java. Namespace.
|
| public String | Returns: String - information about this instance.Overrides java. String representation of this
Namespace, suitable for use in debugging.
|
| CVS_ID | back to summary |
|---|---|
| private static final String CVS_ID | |
| namespaces | back to summary |
|---|---|
| private static HashMap<K, V> namespaces Factory list of namespaces. Keys are prefix&URI. Values are Namespace objects | |
| NO_NAMESPACE | back to summary |
|---|---|
| public static final Namespace NO_NAMESPACE Define a | |
| prefix | back to summary |
|---|---|
| private String prefix The prefix mapped to this namespace | |
| uri | back to summary |
|---|---|
| private String uri The URI for this namespace | |
| XML_NAMESPACE | back to summary |
|---|---|
| public static final Namespace XML_NAMESPACE Define a | |
| Namespace | back to summary |
|---|---|
| private Namespace(String prefix, String uri) This constructor handles creation of a | |
| equals | back to summary |
|---|---|
| public boolean equals(Object ob) Overrides java. This tests for equality - Two
| |
| getNamespace | back to summary |
|---|---|
| public static Namespace getNamespace(String prefix, String uri) This will retrieve (if in existence) or create (if not) a
| |
| getNamespace | back to summary |
|---|---|
| public static Namespace getNamespace(String uri) This will retrieve (if in existence) or create (if not) a
| |
| getPrefix | back to summary |
|---|---|
| public String getPrefix() This returns the prefix mapped to this
| |
| getURI | back to summary |
|---|---|
| public String getURI() This returns the namespace URI for this
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. This returns a probably unique hash code for the
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. This returns a
| |