org.jdesktop.wonderland.common.wfs
Class CellPath

java.lang.Object
  extended by org.jdesktop.wonderland.common.wfs.CellPath

public class CellPath
extends java.lang.Object

Describes the parent of a cell by a slash-separated path of parent cells.

Author:
Jordan Slott

Constructor Summary
CellPath()
          Default constructor
CellPath(java.lang.String parentPath)
          Constructor, takes the parent's path
 
Method Summary
 CellPath getChildPath(java.lang.String childName)
          Returns a new CellPath object that represents the path of a child of this parent, given the name of the child.
 java.lang.String getParentPath()
          Returns a slash-separated path of parent cell names
 java.lang.String[] getParentPaths()
          Returns an array of strings, each representing the name of the parents
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CellPath

public CellPath()
Default constructor


CellPath

public CellPath(java.lang.String parentPath)
Constructor, takes the parent's path

Method Detail

getParentPath

public java.lang.String getParentPath()
Returns a slash-separated path of parent cell names

Returns:
The path of the parent cell in the wfs hierarchy

getParentPaths

public java.lang.String[] getParentPaths()
Returns an array of strings, each representing the name of the parents

Returns:
An array of parent cell names

getChildPath

public CellPath getChildPath(java.lang.String childName)
Returns a new CellPath object that represents the path of a child of this parent, given the name of the child.

Parameters:
childName - The name of the child
Returns:
A new CellPath object for the child

toString

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


Open Wonderland - http://openwonderland.org