|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.olap4j.type.LevelType
public class LevelType
The type of an expression which represents a level.
| Constructor Summary | |
|---|---|
LevelType(Dimension dimension,
Hierarchy hierarchy,
Level level)
Creates a type representing a level. |
|
| Method Summary | |
|---|---|
Dimension |
getDimension()
Returns the dimension of this type, or null if not known. |
Hierarchy |
getHierarchy()
Returns the hierarchy of this type. |
Level |
getLevel()
Returns the level of this type, or null if not known. |
String |
toString()
|
boolean |
usesDimension(Dimension dimension,
boolean maybe)
Returns whether this type contains a given dimension. For example: DimensionType([Gender]) uses only the
[Gender] dimension.
TupleType(MemberType([Gender]), MemberType([Store]))
uses [Gender] and [Store]
dimensions.
The maybe parameter comes into play when the
dimensional information is incomplete. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LevelType(Dimension dimension,
Hierarchy hierarchy,
Level level)
dimension - Dimension which values of this type must belong to, or
null if not knownhierarchy - Hierarchy which values of this type must belong to, or
null if not knownlevel - Level which values of this type must belong to, or null if
not known| Method Detail |
|---|
public boolean usesDimension(Dimension dimension,
boolean maybe)
TypeDimensionType([Gender]) uses only the
[Gender] dimension.TupleType(MemberType([Gender]), MemberType([Store]))
uses [Gender] and [Store]
dimensions.maybe parameter comes into play when the
dimensional information is incomplete. For example, when applied to
TupleType(MemberType(null), MemberType([Store])),
usesDimension([Gender], false) returns true because it
is possible that the expression returns a member of the
[Gender] dimension.
usesDimension in interface Typedimension - Dimensionmaybe - If true, returns true only if this type definitely
uses the dimension
maybe is true,
possibly) uses the given dimensionpublic Dimension getDimension()
Type
getDimension in interface Typepublic Hierarchy getHierarchy()
Type
getHierarchy in interface Typepublic Level getLevel()
Type
getLevel in interface Typepublic String toString()
toString in class Object
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||