Package mondrian.olap4j
Class MondrianOlap4jLevel
- java.lang.Object
-
- mondrian.olap4j.MondrianOlap4jMetadataElement
-
- mondrian.olap4j.MondrianOlap4jLevel
-
- All Implemented Interfaces:
org.olap4j.impl.Named,Level,MetadataElement,OlapWrapper
class MondrianOlap4jLevel extends MondrianOlap4jMetadataElement implements Level, org.olap4j.impl.Named
Implementation ofLevelfor the Mondrian OLAP engine.- Since:
- May 25, 2007
- Author:
- jhyde
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.olap4j.metadata.Level
Level.Type
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Levellevel(package private) MondrianOlap4jSchemaolap4jSchema
-
Constructor Summary
Constructors Constructor Description MondrianOlap4jLevel(MondrianOlap4jSchema olap4jSchema, Level level)Creates a MondrianOlap4jLevel.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetCaption()intgetCardinality()intgetDepth()StringgetDescription()DimensiongetDimension()HierarchygetHierarchy()Level.TypegetLevelType()List<Member>getMembers()StringgetName()protected OlapElementgetOlapElement()Returns the Mondrian metadata element inside this wrapper, or null if there is none.NamedList<Property>getProperties()(package private) NamedList<Property>getProperties(boolean includeStandard)Returns a list of this level's properties, optionally including standard properties that are available on every level.StringgetUniqueName()inthashCode()booleanisCalculated()booleanisVisible()-
Methods inherited from class mondrian.olap4j.MondrianOlap4jMetadataElement
isWrapperFor, unwrap, unwrapImpl
-
-
-
-
Field Detail
-
olap4jSchema
final MondrianOlap4jSchema olap4jSchema
-
level
final Level level
-
-
Constructor Detail
-
MondrianOlap4jLevel
MondrianOlap4jLevel(MondrianOlap4jSchema olap4jSchema, Level level)
Creates a MondrianOlap4jLevel.- Parameters:
olap4jSchema- Schemalevel- Mondrian level
-
-
Method Detail
-
getHierarchy
public Hierarchy getHierarchy()
- Specified by:
getHierarchyin interfaceLevel
-
getDimension
public Dimension getDimension()
- Specified by:
getDimensionin interfaceLevel
-
isCalculated
public boolean isCalculated()
- Specified by:
isCalculatedin interfaceLevel
-
getLevelType
public Level.Type getLevelType()
- Specified by:
getLevelTypein interfaceLevel
-
getProperties
public NamedList<Property> getProperties()
- Specified by:
getPropertiesin interfaceLevel
-
getProperties
NamedList<Property> getProperties(boolean includeStandard)
Returns a list of this level's properties, optionally including standard properties that are available on every level.NOTE: Not part of the olap4j API.
- Parameters:
includeStandard- Whether to include standard properties- Returns:
- List of properties
-
getMembers
public List<Member> getMembers() throws OlapException
- Specified by:
getMembersin interfaceLevel- Throws:
OlapException
-
getName
public String getName()
- Specified by:
getNamein interfaceMetadataElement- Specified by:
getNamein interfaceorg.olap4j.impl.Named
-
getUniqueName
public String getUniqueName()
- Specified by:
getUniqueNamein interfaceMetadataElement
-
getCaption
public String getCaption()
- Specified by:
getCaptionin interfaceMetadataElement
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceMetadataElement
-
getCardinality
public int getCardinality()
- Specified by:
getCardinalityin interfaceLevel
-
isVisible
public boolean isVisible()
- Specified by:
isVisiblein interfaceMetadataElement
-
getOlapElement
protected OlapElement getOlapElement()
Description copied from class:MondrianOlap4jMetadataElementReturns the Mondrian metadata element inside this wrapper, or null if there is none.- Specified by:
getOlapElementin classMondrianOlap4jMetadataElement- Returns:
- The Mondrian metadata element, if any
-
-