|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensaml.xml.Namespace
public class Namespace
Data structure for representing XML namespace attributes.
| Field Summary | |
|---|---|
private boolean |
alwaysDeclare
Always declare this namespace while marshalling? |
private String |
namespacePrefix
Prefix of the namespace. |
private String |
namespaceURI
URI of the namespace. |
private String |
nsStr
String representation of this namespace. |
| Constructor Summary | |
|---|---|
Namespace()
Constructor. |
|
Namespace(String uri,
String prefix)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
alwaysDeclare()
Deprecated. use appropriate methods on the XMLObject's NamespaceManager. |
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)
Deprecated. use appropriate methods on the XMLObject's NamespaceManager. |
void |
setNamespacePrefix(String newPrefix)
Sets the prefix of the namespace. |
void |
setNamespaceURI(String newURI)
Sets the URI of the namespace. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private String namespaceURI
private String namespacePrefix
private boolean alwaysDeclare
private String nsStr
| Constructor Detail |
|---|
public Namespace()
public Namespace(String uri,
String prefix)
uri - the URI of the namespaceprefix - the prefix of the namespace| Method Detail |
|---|
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()
NamespaceManager.
public void setAlwaysDeclare(boolean shouldAlwaysDeclare)
NamespaceManager.
shouldAlwaysDeclare - true if this namespace should always be declared, false if notpublic String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
Namespace
equals in class Objectobj -
protected void constructStringRepresentation()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||