com.citra.pivot.olap.metadata
Class HierarchyList
java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
java.util.ArrayList
com.citra.pivot.olap.metadata.DefaultOlapList
com.citra.pivot.olap.metadata.HierarchyList
- All Implemented Interfaces:
- OlapList, Serializable, Cloneable, Collection, List, RandomAccess
public class HierarchyList
- extends DefaultOlapList
HierarchyList is an olap list, containing OlapHierarchies.
- See Also:
- Serialized Form
Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize |
Methods inherited from interface java.util.List |
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
HierarchyList
public HierarchyList()
- Constructs a HierarchyList.
HierarchyList
public HierarchyList(OlapHierarchy hierarchy)
- Constructs a HierarchyList.
HierarchyList
public HierarchyList(Collection members)
- Constructs a HierarchyList.
getHierarchy
public OlapHierarchy getHierarchy(int index)
- Finds the hierarchy from the list, using its index.
- Parameters:
index
- index of element to return
getHierarchyByID
public OlapHierarchy getHierarchyByID(String id)
- Finds the hierarchy from the list, using its unique id.
- Parameters:
id
- the id to search for
- Returns:
- the hierarchy if found, null otherwise
getHierarchyByName
public OlapHierarchy getHierarchyByName(String name)
- Finds the hierarchy from the list, using its name.
- Parameters:
name
- the name to search for
- Returns:
- the hierarchy if found, null otherwise