Copyright © 2011 Citra Technologies. All Rights Reserved.

com.citra.pivot.olap.metadata
Class CubeList

java.lang.Object
  extended by java.util.AbstractCollection
      extended by java.util.AbstractList
          extended by java.util.ArrayList
              extended by com.citra.pivot.olap.metadata.DefaultOlapList
                  extended by com.citra.pivot.olap.metadata.CubeList
All Implemented Interfaces:
OlapList, Serializable, Cloneable, Collection, List, RandomAccess

public class CubeList
extends DefaultOlapList

CubeList is an olap list, containing OlapCubes.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
CubeList()
          Constructs a CubeList.
CubeList(Collection members)
          Constructs a CubeList.
CubeList(OlapCube cube)
          Constructs a CubeList.
 
Method Summary
 OlapCube getCube(int index)
          Finds the cube from the list, using its index.
 OlapCube getCubeByID(String id)
          Finds the cube from the list, using its unique id.
 OlapCube getCubeByName(String name)
          Finds the cube from the list, using its name.
 
Methods inherited from class com.citra.pivot.olap.metadata.DefaultOlapList
getID, getName
 
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 class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, remove, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
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
 

Constructor Detail

CubeList

public CubeList()
Constructs a CubeList.


CubeList

public CubeList(OlapCube cube)
Constructs a CubeList.


CubeList

public CubeList(Collection members)
Constructs a CubeList.

Method Detail

getCube

public OlapCube getCube(int index)
Finds the cube from the list, using its index.

Parameters:
index - index of element to return

getCubeByID

public OlapCube getCubeByID(String id)
Finds the cube from the list, using its unique id.

Parameters:
id - the id to search for
Returns:
the cube if found, null otherwise

getCubeByName

public OlapCube getCubeByName(String name)
Finds the cube from the list, using its name.

Parameters:
name - the name to search for
Returns:
the cube if found, null otherwise

Copyright © 2011 Citra Technologies. All Rights Reserved.