org.jboss.dna.common.jcr
Class Path.Segment

java.lang.Object
  extended by org.jboss.dna.common.jcr.Path.Segment
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<Path.Segment>
Enclosing class:
Path

@Immutable
public static class Path.Segment
extends java.lang.Object
implements java.lang.Cloneable, java.lang.Comparable<Path.Segment>, java.io.Serializable

A segment of a path.

Author:
Randall Hauch
See Also:
Serialized Form

Method Summary
 java.lang.Object clone()
          
 int compareTo(Path.Segment that)
          
 boolean equals(java.lang.Object obj)
          
 int getIndex()
           
 java.lang.String getName()
           
 java.lang.String getPrefix()
           
 java.lang.String getQualifiedName(boolean includeIndex)
           
 int hashCode()
          
 boolean hasIndex()
           
 boolean hasPrefix()
           
 boolean isParentReference()
           
 boolean isSelfReference()
           
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getPrefix

public java.lang.String getPrefix()
Returns:
prefix

getName

public java.lang.String getName()
Returns:
name

getQualifiedName

public java.lang.String getQualifiedName(boolean includeIndex)

getIndex

public int getIndex()
Returns:
indices

hasIndex

public boolean hasIndex()

hasPrefix

public boolean hasPrefix()

isSelfReference

public boolean isSelfReference()

isParentReference

public boolean isParentReference()

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object

compareTo

public int compareTo(Path.Segment that)

Specified by:
compareTo in interface java.lang.Comparable<Path.Segment>

clone

public java.lang.Object clone()

Overrides:
clone in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)

Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object


Copyright © 2008. All Rights Reserved.