org.apache.jackrabbit.spi
Interface Name

All Superinterfaces:
Cloneable, Comparable, Serializable

public interface Name
extends Comparable, Cloneable, 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".

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
static Name[] EMPTY_ARRAY
          Empty array of Name
static String NS_DEFAULT_URI
           
static String NS_EMPTY_PREFIX
           
static String NS_JCR_PREFIX
           
static String NS_JCR_URI
           
static String NS_MIX_PREFIX
           
static String NS_MIX_URI
           
static String NS_NT_PREFIX
           
static String NS_NT_URI
           
static String NS_REP_PREFIX
           
static String NS_REP_URI
           
static String NS_SV_PREFIX
           
static String NS_SV_URI
           
static String NS_XML_PREFIX
           
static String NS_XML_URI
           
static String NS_XMLNS_PREFIX
           
static String NS_XMLNS_URI
           
 
Method Summary
 String getLocalName()
          Returns the local part of this Name object.
 String getNamespaceURI()
          Returns the namespace URI of this Name object.
 
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 of Name

Method Detail

getLocalName

String getLocalName()
Returns the local part of this Name object.

Returns:
local name

getNamespaceURI

String getNamespaceURI()
Returns the namespace URI of this Name object.

Returns:
namespace URI


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.