Package org.apache.jackrabbit.webdav.xml
Class Namespace
- java.lang.Object
-
- org.apache.jackrabbit.webdav.xml.Namespace
-
public class Namespace extends java.lang.Object
Namespace
-
-
Field Summary
Fields Modifier and Type Field Description static Namespace
EMPTY_NAMESPACE
static Namespace
XML_NAMESPACE
static Namespace
XMLNS_NAMESPACE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
static Namespace
getNamespace(java.lang.String uri)
static Namespace
getNamespace(java.lang.String prefix, java.lang.String uri)
java.lang.String
getPrefix()
java.lang.String
getURI()
int
hashCode()
boolean
isSame(java.lang.String namespaceURI)
Returnstrue
if the aNamespace
built from the specifiednamespaceURI
is 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)
Returnstrue
if the aNamespace
built from the specifiednamespaceURI
is equal to this namespace object.- Parameters:
namespaceURI
- A namespace URI to be compared to this namespace instance.- Returns:
- true if the a
Namespace
built from the specifiednamespaceURI
is equal to this namespace object; false otherwise.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-