Package org.apache.jackrabbit.spi
Interface Name
-
- All Superinterfaces:
Cloneable,Comparable,Serializable
public interface Name extends Comparable, Cloneable, Serializable
ANameis a combination of a namespace URI and a local part. Instances of this class are used to internally represent the names of JCR content items and other objects within a content repository.A
Nameis immutable once created.The String representation of a
Nameobject must be in the format "{namespaceURI}localPart" (called the "expanded form" in the Section 3.2.5.1 of the JCR 2.0 specification).Warning: the expanded form can be used in certain JCR methods, but will not work in case the namespace URI is not an empty string nor an (absolute) URI (as per RFC 3986, Section 3).
An implementation of the
Nameinterface must implement theObject.equals(Object)method such that two Name objects are equal if both the namespace URI and the local part are equal.
-
-
Field Summary
Fields Modifier and Type Field Description static Name[]EMPTY_ARRAYEmpty array ofNamestatic StringNS_DEFAULT_URIstatic StringNS_EMPTY_PREFIXstatic StringNS_JCR_PREFIXstatic StringNS_JCR_URIstatic StringNS_MIX_PREFIXstatic StringNS_MIX_URIstatic StringNS_NT_PREFIXstatic StringNS_NT_URIstatic StringNS_REP_PREFIXstatic StringNS_REP_URIstatic StringNS_SV_PREFIXstatic StringNS_SV_URIstatic StringNS_XML_PREFIXstatic StringNS_XML_URIstatic StringNS_XMLNS_PREFIXstatic StringNS_XMLNS_URI
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetLocalName()Returns the local part of thisNameobject.StringgetNamespaceURI()Returns the namespace URI of thisNameobject.-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Field Detail
-
NS_EMPTY_PREFIX
static final String NS_EMPTY_PREFIX
- See Also:
- Constant Field Values
-
NS_DEFAULT_URI
static final String NS_DEFAULT_URI
- See Also:
- Constant Field Values
-
NS_REP_PREFIX
static final String NS_REP_PREFIX
- See Also:
- Constant Field Values
-
NS_REP_URI
static final String NS_REP_URI
- See Also:
- Constant Field Values
-
NS_JCR_PREFIX
static final String NS_JCR_PREFIX
- See Also:
- Constant Field Values
-
NS_JCR_URI
static final String NS_JCR_URI
- See Also:
- Constant Field Values
-
NS_NT_PREFIX
static final String NS_NT_PREFIX
- See Also:
- Constant Field Values
-
NS_NT_URI
static final String NS_NT_URI
- See Also:
- Constant Field Values
-
NS_MIX_PREFIX
static final String NS_MIX_PREFIX
- See Also:
- Constant Field Values
-
NS_MIX_URI
static final String NS_MIX_URI
- See Also:
- Constant Field Values
-
NS_SV_PREFIX
static final String NS_SV_PREFIX
- See Also:
- Constant Field Values
-
NS_SV_URI
static final String NS_SV_URI
- See Also:
- Constant Field Values
-
NS_XML_PREFIX
static final String NS_XML_PREFIX
- See Also:
- Constant Field Values
-
NS_XML_URI
static final String NS_XML_URI
- See Also:
- Constant Field Values
-
NS_XMLNS_PREFIX
static final String NS_XMLNS_PREFIX
- See Also:
- Constant Field Values
-
NS_XMLNS_URI
static final String NS_XMLNS_URI
- See Also:
- Constant Field Values
-
EMPTY_ARRAY
static final Name[] EMPTY_ARRAY
Empty array ofName
-
-