javax.rad.model
Class TreePath

java.lang.Object
  extended by javax.rad.model.TreePath

public class TreePath
extends Object

A TreeNode stores the information of a single TreeNode.


Constructor Summary
TreePath(int... pPath)
          Constructs a new TreePath.
 
Method Summary
 boolean equals(Object pObject)
          
 int get(int pIndex)
          Gets the value of given index.
 TreePath getChildPath(int... pArray)
          Adds the given array to this TreePath.
 int getLast()
          Gets the value of the last index.
 TreePath getParentPath()
          Gets the parent tree path.
 int hashCode()
          
 int length()
          Gets the length of the array.
 TreePath set(int pIndex, int pValue)
          Sets the value of a given index.
 int[] toArray()
          Gets a mutable array of this immutable array.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TreePath

public TreePath(int... pPath)
Constructs a new TreePath.

Parameters:
pPath - tree path.
Method Detail

length

public int length()
Gets the length of the array.

Returns:
the length of the array.

get

public int get(int pIndex)
Gets the value of given index.

Parameters:
pIndex - the index.
Returns:
the value of given index.

getLast

public int getLast()
Gets the value of the last index.

Returns:
the value of the last index.

set

public TreePath set(int pIndex,
                    int pValue)
Sets the value of a given index.

Parameters:
pIndex - the index.
pValue - the value.
Returns:
the new TreePath.

getChildPath

public TreePath getChildPath(int... pArray)
Adds the given array to this TreePath.

Parameters:
pArray - the array.
Returns:
the new TreePath.

getParentPath

public TreePath getParentPath()
Gets the parent tree path.

Returns:
the new TreePath.

toArray

public int[] toArray()
Gets a mutable array of this immutable array.

Returns:
a mutable array,

hashCode

public int hashCode()

Overrides:
hashCode in class Object

equals

public boolean equals(Object pObject)

Overrides:
equals in class Object

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.