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