|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public static interface Path.Element
Object representation of a single JCR path element. An Element
object contains the Name and optional index of a single
JCR path element.
Element object must be immutable.
The String presentation of an Element must be in the format
"{namespaceURI}localPart" or
"{namespaceURI}localPart[index]" case of an index greater
than Path.INDEX_DEFAULT.
Note, that the implementation must implement the equals method such, that
two Element objects having equals Names and the
same normalized index must be equal.
| Method Summary | |
|---|---|
boolean |
denotesCurrent()
Returns true if this element denotes the current
('.') element, otherwise returns false. |
boolean |
denotesIdentifier()
Returns true if this element represents an identifier element. |
boolean |
denotesName()
Returns true if this element represents a regular name
(i.e. |
boolean |
denotesParent()
Returns true if this element denotes the parent
('..') element, otherwise returns false. |
boolean |
denotesRoot()
Returns true if this element denotes the root element,
otherwise returns false. |
int |
getIndex()
Returns the index of the element as it has been assigned upon creation. |
Name |
getName()
Returns the name of this path element. |
int |
getNormalizedIndex()
Returns the normalized index of this path element, i.e. |
java.lang.String |
getString()
Return the String presentation of a Path.Element. |
| Method Detail |
|---|
Name getName()
int getIndex()
int getNormalizedIndex()
Path.INDEX_DEFAULT.
boolean denotesRoot()
true if this element denotes the root element,
otherwise returns false.
true if this element denotes the root
element; otherwise falseboolean denotesParent()
true if this element denotes the parent
('..') element, otherwise returns false.
true if this element denotes the parent
element; otherwise falseboolean denotesCurrent()
true if this element denotes the current
('.') element, otherwise returns false.
true if this element denotes the current
element; otherwise falseboolean denotesName()
true if this element represents a regular name
(i.e. neither root, '.' nor '..'), otherwise returns false.
true if this element represents a regular name;
otherwise falseboolean denotesIdentifier()
true if this element represents an identifier element.
true if this element represents an identifier element.java.lang.String getString()
Path.Element. It must be
in the format "{namespaceURI}localPart" or
"{namespaceURI}localPart[index]" in case of an index
greater than Path.INDEX_DEFAULT.
Path.Element.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||