public static interface XmlaConstant.Dictionary<E extends Enum<E> & XmlaConstant>
| Modifier and Type | Method and Description |
|---|---|
Set<E> |
forMask(int xmlaOrdinalMask)
Creates a set of values by parsing a mask.
|
E |
forName(String xmlaName)
Returns the enumeration value with the given name in the XMLA
specification, or null if there is no such.
|
E |
forOrdinal(int xmlaOrdinal)
Returns the enumeration value with the given ordinal in the XMLA
specification, or null if there is no such.
|
Class<E> |
getEnumClass()
Returns the class that the enum values belong to.
|
List<E> |
getValues()
Returns all values of the enum.
|
int |
toMask(Set<E> set)
Converts a set of enum values to an integer by logical OR-ing their
codes.
|
E forOrdinal(int xmlaOrdinal)
xmlaOrdinal - XMLA ordinalE forName(String xmlaName)
xmlaName - XMLA nameSet<E> forMask(int xmlaOrdinalMask)
xmlaOrdinalMask - Bit maskint toMask(Set<E> set)
set - Set of enum valuesList<E> getValues()
This method may be more efficient than
Class.getEnumConstants() because the latter is required to
create a new array every call to prevent corruption.