org.alfresco.repo.avm.util
Class SimplePath

java.lang.Object
  extended by org.alfresco.repo.avm.util.SimplePath
All Implemented Interfaces:
java.io.Serializable

public class SimplePath
extends java.lang.Object
implements java.io.Serializable

Holds a simple path.

See Also:
Serialized Form

Constructor Summary
SimplePath(java.lang.String path)
          Construct a new one from a string.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String get(int index)
          Get the component name at index.
 int hashCode()
           
 int size()
          Get the number of components in this path.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimplePath

public SimplePath(java.lang.String path)
Construct a new one from a string.

Parameters:
path - The String representation of the path.
Method Detail

get

public java.lang.String get(int index)
Get the component name at index.

Parameters:
index - The index of the component to get.
Returns:
The name of the component.

size

public int size()
Get the number of components in this path.

Returns:
The number of components.

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.