org.apache.jackrabbit.name
Class Path.CurrentElement

java.lang.Object
  extended byorg.apache.jackrabbit.name.Path.PathElement
      extended byorg.apache.jackrabbit.name.Path.CurrentElement
Enclosing class:
Path

public static final class Path.CurrentElement
extends Path.PathElement


Method Summary
 boolean denotesCurrent()
          Returns true if this element denotes the current ('.') element, otherwise returns false.
 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.
 String toJCRName(NamespaceResolver resolver)
          Returns the JCR name representation of this path element.
 String toString()
          Returns a string representation of this path element.
 
Methods inherited from class org.apache.jackrabbit.name.Path.PathElement
equals, fromString, getIndex, getName, hashCode, toJCRName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

denotesRoot

public boolean denotesRoot()
Description copied from class: Path.PathElement
Returns true if this element denotes the root element, otherwise returns false.

Overrides:
denotesRoot in class Path.PathElement
Returns:
true if this element denotes the root element; otherwise false

denotesCurrent

public boolean denotesCurrent()
Description copied from class: Path.PathElement
Returns true if this element denotes the current ('.') element, otherwise returns false.

Overrides:
denotesCurrent in class Path.PathElement
Returns:
true if this element denotes the current element; otherwise false

denotesParent

public boolean denotesParent()
Description copied from class: Path.PathElement
Returns true if this element denotes the parent ('..') element, otherwise returns false.

Overrides:
denotesParent in class Path.PathElement
Returns:
true if this element denotes the parent element; otherwise false

denotesName

public boolean denotesName()
Description copied from class: Path.PathElement
Returns true if this element represents a regular name (i.e. neither root, '.' nor '..'), otherwise returns false.

Overrides:
denotesName in class Path.PathElement
Returns:
true if this element represents a regular name; otherwise false

toJCRName

public String toJCRName(NamespaceResolver resolver)
                 throws NoPrefixDeclaredException
Description copied from class: Path.PathElement
Returns the JCR name representation of this path element. Note that strictly speaking the returned value is in fact a JCR relative path instead of a JCR name, as it contains the index value if the index is greater than one.

Overrides:
toJCRName in class Path.PathElement
Parameters:
resolver - namespace resolver
Returns:
JCR name representation of the path element
Throws:
NoPrefixDeclaredException - if the namespace of the path element name can not be resolved

toString

public String toString()
Description copied from class: Path.PathElement
Returns a string representation of this path element. Note that the path element name is expressed using the {uri}name syntax. Use the toJCRName method to get the prefixed string representation of the path element.

Overrides:
toString in class Path.PathElement
Returns:
string representation of the path element


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