|
||||||||||
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.
Constructor Summary | |
---|---|
Namespace()
Constructor. |
|
Namespace(java.lang.String uri,
java.lang.String prefix)
Constructor. |
Method Summary | |
---|---|
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(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()
|
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(java.lang.String newPrefix)
Sets the prefix of the namespace. |
void |
setNamespaceURI(java.lang.String newURI)
Sets the URI of the namespace. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Namespace()
public Namespace(java.lang.String uri, java.lang.String prefix)
uri
- the URI of the namespaceprefix
- the prefix of the namespaceMethod Detail |
---|
public java.lang.String getNamespacePrefix()
public void setNamespacePrefix(java.lang.String newPrefix)
newPrefix
- the prefix of the namespacepublic java.lang.String getNamespaceURI()
public void setNamespaceURI(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
Namespace
equals
in class java.lang.Object
obj
-
protected void constructStringRepresentation()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |