org.outerj.daisy.repository
Class HierarchyPath
java.lang.Object
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.
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.
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