Package org.opensaml.core.xml
Class Namespace
- java.lang.Object
-
- org.opensaml.core.xml.Namespace
-
public class Namespace extends Object
Data structure for representing XML namespace attributes.
-
-
Field Summary
Fields Modifier and Type Field Description private StringnamespacePrefixPrefix of the namespace.private StringnamespaceURIURI of the namespace.private StringnsStrString representation of this namespace.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconstructStringRepresentation()Constructs an XML namespace declaration string representing this namespace.booleanequals(Object obj)Checks if the given object is the same as this Namespace.StringgetNamespacePrefix()Gets the prefix of the namespace.StringgetNamespaceURI()Gets the URI of the namespace.inthashCode()StringtoString()
-
-
-
Method Detail
-
getNamespacePrefix
public String getNamespacePrefix()
Gets the prefix of the namespace.- Returns:
- the prefix of the namespace, may be null if this is a default namespace
-
getNamespaceURI
public String getNamespaceURI()
Gets the URI of the namespace.- Returns:
- the URI of the namespace
-
equals
public boolean equals(Object obj)
Checks if the given object is the same as this Namespace. This is true if:- The given object is of type
Namespace - The given object's namespace URI is the same as this object's namespace URI
- The given object's namespace prefix is the same as this object's namespace prefix
- The given object is of type
-
constructStringRepresentation
protected void constructStringRepresentation()
Constructs an XML namespace declaration string representing this namespace.
-
-