Daisy Open Source CMS

org.outerj.daisy.repository
Class HierarchyPath

java.lang.Object
  extended by org.outerj.daisy.repository.HierarchyPath

public final class HierarchyPath
extends Object

A HierarchyPath is the value assigned to a hierarchical field. In case of a multivalue hierarchical field, the value of the field is an array of HierarchyPath objects.

A HierarchyPath object is immutable.


Constructor Summary
HierarchyPath(Object[] elements)
           
 
Method Summary
 boolean equals(Object obj)
           
 Object[] getElements()
           
 int length()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HierarchyPath

public HierarchyPath(Object[] elements)
Parameters:
elements - the elements of the hierarchy path. The object types in the list should correspond to the datatype of the field.
Method Detail

getElements

public Object[] getElements()

length

public int length()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

Daisy Open Source CMS