Package org.apache.jackrabbit.webdav.xml
Class Namespace
- java.lang.Object
-
- org.apache.jackrabbit.webdav.xml.Namespace
-
public class Namespace extends java.lang.ObjectNamespace
-
-
Field Summary
Fields Modifier and Type Field Description static NamespaceEMPTY_NAMESPACEstatic NamespaceXML_NAMESPACEstatic NamespaceXMLNS_NAMESPACE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)static NamespacegetNamespace(java.lang.String uri)static NamespacegetNamespace(java.lang.String prefix, java.lang.String uri)java.lang.StringgetPrefix()java.lang.StringgetURI()inthashCode()booleanisSame(java.lang.String namespaceURI)Returnstrueif the aNamespacebuilt from the specifiednamespaceURIis equal to this namespace object.
-
-
-
Method Detail
-
getNamespace
public static Namespace getNamespace(java.lang.String prefix, java.lang.String uri)
-
getNamespace
public static Namespace getNamespace(java.lang.String uri)
-
getPrefix
public java.lang.String getPrefix()
-
getURI
public java.lang.String getURI()
-
isSame
public boolean isSame(java.lang.String namespaceURI)
Returnstrueif the aNamespacebuilt from the specifiednamespaceURIis equal to this namespace object.- Parameters:
namespaceURI- A namespace URI to be compared to this namespace instance.- Returns:
- true if the a
Namespacebuilt from the specifiednamespaceURIis equal to this namespace object; false otherwise.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-