Package mondrian.olap
Class HierarchyBase
java.lang.Object
mondrian.olap.OlapElementBase
mondrian.olap.HierarchyBase
- All Implemented Interfaces:
Annotated,Hierarchy,OlapElement
- Direct Known Subclasses:
RolapHierarchy
Skeleton implementation for
Hierarchy.- Since:
- 6 August, 2001
- Author:
- jhyde
-
Nested Class Summary
Nested classes/interfaces inherited from interface mondrian.olap.OlapElement
OlapElement.LocalizedProperty -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Stringprotected final Dimensionprotected final booleanprotected Level[]protected final Stringprotected final StringnameandsubNameare the name of the hierarchy, respectively containing and not containing dimension name.protected final StringFields inherited from class mondrian.olap.OlapElementBase
caption, visible -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHierarchyBase(Dimension dimension, String subName, String caption, boolean visible, String description, boolean hasAll) -
Method Summary
Modifier and TypeMethodDescriptionbooleanequals(OlapElement mdxElement) Returns the name of the 'all' level in this hierarchy.Returns the dimension this hierarchy belongs to.Level[]Returns the levels in this hierarchy.getName()Returns the name of this element qualified by its class, for example "hierarchy 'Customers'".Returns the name of the hierarchy sans dimension name.Returns the unique name of this hierarchy, always including the dimension name, e.g.booleanhasAll()abstract booleanisRagged()lookupChild(SchemaReader schemaReader, Id.Segment s, MatchType matchType) Looks up a child element, returning null if it does not exist.Methods inherited from class mondrian.olap.OlapElementBase
clone, computeHashCode, equals, getCaption, getLocalized, getLogger, hashCode, isVisible, setCaption, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface mondrian.olap.Annotated
getAnnotationMapMethods inherited from interface mondrian.olap.Hierarchy
createMember, getAllMember, getDefaultMember, getDisplayFolder, getNullMemberMethods inherited from interface mondrian.olap.OlapElement
getCaption, getLocalized, isVisible
-
Field Details
-
dimension
-
subName
nameandsubNameare the name of the hierarchy, respectively containing and not containing dimension name. For example:uniqueName name subName [Time.Weekly] Time.Weekly Weekly [Customers] Customers null If
MondrianProperties.SsasCompatibleNamingis true, name and subName have the same value. -
name
-
uniqueName
-
description
-
levels
-
hasAll
protected final boolean hasAll -
allMemberName
-
allLevelName
-
-
Constructor Details
-
HierarchyBase
-
-
Method Details
-
getSubName
Returns the name of the hierarchy sans dimension name.- Returns:
- name of hierarchy sans dimension name
-
getUniqueName
- Specified by:
getUniqueNamein interfaceOlapElement
-
getUniqueNameSsas
Description copied from interface:HierarchyReturns the unique name of this hierarchy, always including the dimension name, e.g. "[Time].[Time]", regardless of whetherMondrianProperties.SsasCompatibleNamingis enabled.- Specified by:
getUniqueNameSsasin interfaceHierarchy- Returns:
- Unique name of hierarchy.
-
getName
- Specified by:
getNamein interfaceOlapElement
-
getQualifiedName
Description copied from interface:OlapElementReturns the name of this element qualified by its class, for example "hierarchy 'Customers'".- Specified by:
getQualifiedNamein interfaceOlapElement
-
isRagged
public abstract boolean isRagged() -
getDescription
- Specified by:
getDescriptionin interfaceOlapElement
-
getDimension
Description copied from interface:HierarchyReturns the dimension this hierarchy belongs to.- Specified by:
getDimensionin interfaceHierarchy- Specified by:
getDimensionin interfaceOlapElement
-
getLevels
Description copied from interface:HierarchyReturns the levels in this hierarchy.If a hierarchy is subject to access-control, some of the levels may not be visible; use
SchemaReader.getHierarchyLevels(mondrian.olap.Hierarchy)instead. -
getHierarchy
- Specified by:
getHierarchyin interfaceOlapElement
-
hasAll
public boolean hasAll() -
equals
- Overrides:
equalsin classOlapElementBase
-
lookupChild
Description copied from interface:OlapElementLooks up a child element, returning null if it does not exist.- Specified by:
lookupChildin interfaceOlapElement
-
getAllMemberName
-
getAllLevelName
Returns the name of the 'all' level in this hierarchy.- Returns:
- name of the 'all' level
-