Package mondrian.olap
Enum Class AxisOrdinal.StandardAxisOrdinal
- All Implemented Interfaces:
Serializable
,Comparable<AxisOrdinal.StandardAxisOrdinal>
,Constable
,AxisOrdinal
- Enclosing interface:
- AxisOrdinal
public static enum AxisOrdinal.StandardAxisOrdinal
extends Enum<AxisOrdinal.StandardAxisOrdinal>
implements AxisOrdinal
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface mondrian.olap.AxisOrdinal
AxisOrdinal.StandardAxisOrdinal
-
Enum Constant Summary
Enum ConstantDescriptionChapters axis, logical ordinal = 3.Columns axis (also known as X axis), logical ordinal = 0.No axis.Pages axis, logical ordinal = 2.Rows axis (also known as Y axis), logical ordinal = 1.Sections axis, logical ordinal = 4.Slicer axis. -
Method Summary
Modifier and TypeMethodDescriptionstatic AxisOrdinal
forLogicalOrdinal
(int ordinal) Returns an axis with a given number.boolean
isFilter()
Returns whether this is the filter (slicer) axis.int
Returns the ordinal of this axis.Returns the enum constant of this class with the specified name.static AxisOrdinal.StandardAxisOrdinal[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface mondrian.olap.AxisOrdinal
name
-
Enum Constant Details
-
NONE
No axis. -
SLICER
Slicer axis. -
COLUMNS
Columns axis (also known as X axis), logical ordinal = 0. -
ROWS
Rows axis (also known as Y axis), logical ordinal = 1. -
PAGES
Pages axis, logical ordinal = 2. -
CHAPTERS
Chapters axis, logical ordinal = 3. -
SECTIONS
Sections axis, logical ordinal = 4.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
forLogicalOrdinal
Returns an axis with a given number.If ordinal is greater than 4, returns a non-standard axis called "AXIS(n)". Never returns null.
- Parameters:
ordinal
- Ordinal- Returns:
- Axis
-
logicalOrdinal
public int logicalOrdinal()Description copied from interface:AxisOrdinal
- Specified by:
logicalOrdinal
in interfaceAxisOrdinal
- Returns:
- ordinal of this axis
-
isFilter
public boolean isFilter()Description copied from interface:AxisOrdinal
Returns whether this is the filter (slicer) axis.- Specified by:
isFilter
in interfaceAxisOrdinal
- Returns:
- whether this is the filter axis
-