org.apache.jackrabbit.name
Class Path.RootElement

java.lang.Object
  extended by org.apache.jackrabbit.name.Path.PathElement
      extended by org.apache.jackrabbit.name.Path.RootElement
All Implemented Interfaces:
Serializable
Enclosing class:
Path

public static final class Path.RootElement
extends Path.PathElement

See Also:
Serialized Form

Method Summary
 boolean denotesCurrent()
          Returns false.
 boolean denotesName()
          Returns false.
 boolean denotesParent()
          Returns false.
 boolean denotesRoot()
          Returns true.
 String toJCRName(NamespaceResolver resolver)
          Returns the JCR name representation of this path element.
 void toJCRName(NamespaceResolver resolver, StringBuffer buf)
          Appends the JCR name representation of this path element to the given string buffer.
 String toString()
          Returns a string representation of this path element.
 
Methods inherited from class org.apache.jackrabbit.name.Path.PathElement
create, create, equals, fromString, getIndex, getName, getNormalizedIndex, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

denotesName

public boolean denotesName()
Returns false.

Specified by:
denotesName in class Path.PathElement
Returns:
false
See Also:
Path.PathElement.denotesName()

denotesRoot

public boolean denotesRoot()
Returns true.

Specified by:
denotesRoot in class Path.PathElement
Returns:
true
See Also:
Path.PathElement.denotesRoot()

denotesParent

public boolean denotesParent()
Returns false.

Specified by:
denotesParent in class Path.PathElement
Returns:
false
See Also:
Path.PathElement.denotesParent()

denotesCurrent

public boolean denotesCurrent()
Returns false.

Specified by:
denotesCurrent in class Path.PathElement
Returns:
false
See Also:
Path.PathElement.denotesCurrent()

toJCRName

public String toJCRName(NamespaceResolver resolver)
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.

Returns ""

Overrides:
toJCRName in class Path.PathElement
Parameters:
resolver - namespace resolver
Returns:
""

toJCRName

public void toJCRName(NamespaceResolver resolver,
                      StringBuffer buf)
Appends the JCR name representation of this path element to the given string buffer.

Overrides:
toJCRName in class Path.PathElement
Parameters:
resolver - namespace resolver
buf - string buffer where the JCR name representation should be appended to
See Also:
Path.PathElement.toJCRName(NamespaceResolver)

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:
LITERAL
See Also:
Object.toString()


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