Package org.apache.jackrabbit.spi
Interface Name
- All Superinterfaces:
Cloneable,Comparable,Serializable
A
Name is 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 Name is immutable once created.
The String representation of a Name object 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 Name interface must implement the
Object.equals(Object) method such that two Name objects are equal if
both the namespace URI and the local part are equal.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Name[]Empty array ofNamestatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Method Summary
Modifier and TypeMethodDescriptionReturns the local part of thisNameobject.Returns the namespace URI of thisNameobject.Methods inherited from interface java.lang.Comparable
compareTo
-
Field Details
-
NS_EMPTY_PREFIX
- See Also:
-
NS_DEFAULT_URI
- See Also:
-
NS_REP_PREFIX
- See Also:
-
NS_REP_URI
- See Also:
-
NS_JCR_PREFIX
- See Also:
-
NS_JCR_URI
- See Also:
-
NS_NT_PREFIX
- See Also:
-
NS_NT_URI
- See Also:
-
NS_MIX_PREFIX
- See Also:
-
NS_MIX_URI
- See Also:
-
NS_SV_PREFIX
- See Also:
-
NS_SV_URI
- See Also:
-
NS_XML_PREFIX
- See Also:
-
NS_XML_URI
- See Also:
-
NS_XMLNS_PREFIX
- See Also:
-
NS_XMLNS_URI
- See Also:
-
EMPTY_ARRAY
Empty array ofName
-
-
Method Details