com.citra.pivot.olap.metadata
Class LevelList
java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
java.util.ArrayList
com.citra.pivot.olap.metadata.DefaultOlapList
com.citra.pivot.olap.metadata.LevelList
- All Implemented Interfaces:
- OlapList, Serializable, Cloneable, Collection, List, RandomAccess
public class LevelList
- extends DefaultOlapList
LevelList is an olap list, containing OlapLevels.
- 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 |
LevelList
public LevelList()
- Constructs a LevelList.
LevelList
public LevelList(OlapLevel level)
- Constructs a LevelList.
LevelList
public LevelList(Collection members)
- Constructs a LevelList.
getLevel
public OlapLevel getLevel(int index)
- Finds the level from the list, using its index.
- Parameters:
index
- index of element to return
getLevelByID
public OlapLevel getLevelByID(String id)
- Finds the level from the list, using its unique id.
- Parameters:
id
- the id to search for
- Returns:
- the level if found, null otherwise
getLevelByName
public OlapLevel getLevelByName(String name)
- Finds the level from the list, using its name.
- Parameters:
name
- the name to search for
- Returns:
- the level if found, null otherwise