org.alfresco.deployment.util
Class Path

java.lang.Object
  extended by org.alfresco.deployment.util.Path

public class Path
extends java.lang.Object

A Class that represents a deployment path.


Constructor Summary
Path(java.lang.String path)
           
Path(java.lang.String[] components)
           
 
Method Summary
 Path extend(java.lang.String name)
          Get the Path that is this Path extended by one component.
 java.lang.String get(int index)
          Get the indexth component.
 java.lang.String getBaseName()
          Get the last component of the Path.
 Path getParent()
          Get the parent Path of this Path.
 int size()
          Get the number of components in the path.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Path

public Path(java.lang.String path)

Path

public Path(java.lang.String[] components)
Method Detail

size

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

Returns:

get

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

Parameters:
index -
Returns:

getParent

public Path getParent()
Get the parent Path of this Path.

Returns:

getBaseName

public java.lang.String getBaseName()
Get the last component of the Path. Don't call on the root Path.

Returns:

extend

public Path extend(java.lang.String name)
Get the Path that is this Path extended by one component.

Parameters:
name -
Returns:

toString

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


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