public class DimGroup extends AbstractList implements List
Dimension objects). By creating a
dimension group, dimensions can be organized for presentation purposes.
Each explicit dimension group must be given a name; a unique ID is generated
when the data is indexed.
If a dimension is not assigned to an explicit dimension group, it is placed in an implicit dimension group of its own. These implicit groups have no name and an ID of zero.
Note: DimGroup objects are unmodifiable and therefore do not support
any modification operations (such as add, remove, and clear) that are inherited.
Attempting to modify the object may result in a runtime exception
(UnsupportedOperationException).
modCount| Modifier and Type | Method and Description |
|---|---|
Object |
get(int index)
Gets the dimension at position
index in the list. |
Dimension |
getDimension(long dimensionId)
Gets the dimension with the ID
dimensionId from this
list. |
Dimension |
getDimension(String dimensionName)
Gets the dimension with the name
dimensionName from
this list. |
long |
getId()
Gets the ID of the dimension group.
|
String |
getName()
Gets the name of the dimension group.
|
boolean |
isExplicit()
Determines if the dimension group is an explicit or implicit dimension
group.
|
int |
size()
Gets the number of dimensions enclosed by this dimension group.
|
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, subList, toArray, toArrayparallelStream, removeIf, streampublic Object get(int index)
get in interface Listget in class AbstractListindex - offset of the desired dimension.index.IndexOutOfBoundsException - If the index is out of range.public int size()
size in interface Collectionsize in interface Listsize in class AbstractCollectionDimGroup.public String getName()
null if
it does not have a name (i.e., is an implicit dimension group).public long getId()
0 if
it is an implicit dimension group.public boolean isExplicit()
true if the dimension group is an explicit dimension;
false if it is an implicit dimension group.public Dimension getDimension(long dimensionId)
dimensionId from this
list. If the dimension is not found in this list, null
is returned.
Note that when dealing with multi-select dimensions, it is possible
to have a list with multiple Dimension objects for the
same dimension. In this case, several share the same ID and this
method does not define which one is returned.
dimensionId - the ID of the desired dimension.Dimension with the ID dimensionId, or
null if the dimension is not found.public Dimension getDimension(String dimensionName)
dimensionName from
this list. If the dimension is not found in this list,
null is returned. Several dimensions may share the
same name in the list, and in this case this method does not define
which one is returned.dimensionName - the name of the desired dimension.Dimension with the name dimensionName or
null if the dimension is not found.© 2003, 2015, Oracle and/or its affiliates. All rights reserved.
Oracle and/or its affiliates Confidential