public interface Name
extends java.lang.Comparable, java.lang.Cloneable, java.io.Serializable
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
".
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.
Modifier and Type | Field and Description |
---|---|
static Name[] |
EMPTY_ARRAY
Empty array of
Name |
static java.lang.String |
NS_DEFAULT_URI |
static java.lang.String |
NS_EMPTY_PREFIX |
static java.lang.String |
NS_JCR_PREFIX |
static java.lang.String |
NS_JCR_URI |
static java.lang.String |
NS_MIX_PREFIX |
static java.lang.String |
NS_MIX_URI |
static java.lang.String |
NS_NT_PREFIX |
static java.lang.String |
NS_NT_URI |
static java.lang.String |
NS_REP_PREFIX |
static java.lang.String |
NS_REP_URI |
static java.lang.String |
NS_SV_PREFIX |
static java.lang.String |
NS_SV_URI |
static java.lang.String |
NS_XML_PREFIX |
static java.lang.String |
NS_XML_URI |
static java.lang.String |
NS_XMLNS_PREFIX |
static java.lang.String |
NS_XMLNS_URI |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLocalName()
Returns the local part of this
Name object. |
java.lang.String |
getNamespaceURI()
Returns the namespace URI of this
Name object. |
static final java.lang.String NS_EMPTY_PREFIX
static final java.lang.String NS_DEFAULT_URI
static final java.lang.String NS_REP_PREFIX
static final java.lang.String NS_REP_URI
static final java.lang.String NS_JCR_PREFIX
static final java.lang.String NS_JCR_URI
static final java.lang.String NS_NT_PREFIX
static final java.lang.String NS_NT_URI
static final java.lang.String NS_MIX_PREFIX
static final java.lang.String NS_MIX_URI
static final java.lang.String NS_SV_PREFIX
static final java.lang.String NS_SV_URI
static final java.lang.String NS_XML_PREFIX
static final java.lang.String NS_XML_URI
static final java.lang.String NS_XMLNS_PREFIX
static final java.lang.String NS_XMLNS_URI
static final Name[] EMPTY_ARRAY
Name
Copyright © 2010 - 2020 Adobe. All Rights Reserved