public class XmlNamespace
extends java.lang.Object
| Constructor and Description |
|---|
XmlNamespace(java.lang.String uri)
Constructs a new namespace with the specified namespace URI and no defined
prefix alias.
|
XmlNamespace(java.lang.String alias,
java.lang.String uri)
Constructs a new namespace with the specified prefix alias and namespace
URI.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Returns true if the target object is a Namespace instance that has a
matching namespace URI and prefix (if specified).
|
java.lang.String |
getAlias()
Returns the prefix alias for the namespace or
null if undefined. |
java.lang.String |
getUri()
Returns the fully qualified URI for the namespace.
|
int |
hashCode() |
public XmlNamespace(java.lang.String uri)
public XmlNamespace(java.lang.String alias,
java.lang.String uri)
public final java.lang.String getAlias()
null if undefined.public final java.lang.String getUri()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object