public class Namespace
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
namespacePrefix
Prefix of the namespace.
|
private java.lang.String |
namespaceURI
URI of the namespace.
|
private java.lang.String |
nsStr
String representation of this namespace.
|
| Constructor and Description |
|---|
Namespace(java.lang.String uri,
java.lang.String prefix)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
constructStringRepresentation()
Constructs an XML namespace declaration string representing this namespace.
|
boolean |
equals(java.lang.Object obj)
Checks if the given object is the same as this Namespace.
|
java.lang.String |
getNamespacePrefix()
Gets the prefix of the namespace.
|
java.lang.String |
getNamespaceURI()
Gets the URI of the namespace.
|
int |
hashCode() |
java.lang.String |
toString() |
private java.lang.String namespaceURI
private java.lang.String namespacePrefix
private java.lang.String nsStr
public Namespace(@Nullable
java.lang.String uri,
@Nullable
java.lang.String prefix)
uri - the URI of the namespaceprefix - the prefix of the namespacepublic java.lang.String getNamespacePrefix()
public java.lang.String getNamespaceURI()
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
Namespaceequals in class java.lang.Objectobj - protected void constructStringRepresentation()