public class Namespace extends Object
| Constructor and Description |
|---|
Namespace()
Constructor.
|
Namespace(String uri,
String prefix)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
alwaysDeclare()
Gets wether this namespace should always be declared when marshalling, even if it was already declared on an
ancestral element.
|
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() |
void |
setAlwaysDeclare(boolean shouldAlwaysDeclare)
Sets wether this namespace should always be declared when marshalling, even if it was already declared on an
ancestral element.
|
void |
setNamespacePrefix(String newPrefix)
Sets the prefix of the namespace.
|
void |
setNamespaceURI(String newURI)
Sets the URI of the namespace.
|
String |
toString() |
public String getNamespacePrefix()
public void setNamespacePrefix(String newPrefix)
newPrefix - the prefix of the namespacepublic String getNamespaceURI()
public void setNamespaceURI(String newURI)
newURI - the URI of the namespacepublic boolean alwaysDeclare()
public void setAlwaysDeclare(boolean shouldAlwaysDeclare)
shouldAlwaysDeclare - true if this namespace should always be declared, false if notpublic boolean equals(Object obj)
Namespaceprotected void constructStringRepresentation()
Copyright © 2006-2013 Internet2. All Rights Reserved.