Package org.opensaml.core.xml
Class Namespace
java.lang.Object
org.opensaml.core.xml.Namespace
Data structure for representing XML namespace attributes.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
namespaceURI
URI of the namespace. -
namespacePrefix
Prefix of the namespace. -
nsStr
String representation of this namespace.
-
-
Constructor Details
-
Namespace
Constructor.- Parameters:
uri
- the URI of the namespaceprefix
- the prefix of the namespace
-
-
Method Details
-
getNamespacePrefix
Gets the prefix of the namespace.- Returns:
- the prefix of the namespace, may be null if this is a default namespace
-
getNamespaceURI
Gets the URI of the namespace.- Returns:
- the URI of the namespace
-
toString
-
hashCode
public int hashCode() -
equals
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.
-