public class Namespace extends Object
| Modifier and Type | Field and Description |
|---|---|
private String |
namespacePrefix
Prefix of the namespace.
|
private String |
namespaceURI
URI of the namespace.
|
private String |
nsStr
String representation of this namespace.
|
| Constructor and Description |
|---|
Namespace(String uri,
String prefix)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
constructStringRepresentation()
Constructs an XML namespace declaration string representing this namespace.
|
boolean |
equals(Object obj)
Checks if the given object is the same as this Namespace.
|
String |
getNamespacePrefix()
Gets the prefix of the namespace.
|
String |
getNamespaceURI()
Gets the URI of the namespace.
|
int |
hashCode() |
String |
toString() |
private String namespaceURI
private String namespacePrefix
private String nsStr
public String getNamespacePrefix()
public String getNamespaceURI()
public boolean equals(Object obj)
Namespaceprotected void constructStringRepresentation()
Copyright © 1999–2015. All rights reserved.