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
Modifier and TypeFieldDescriptionprotected String
protected String
protected String
protected final Dimension
protected final boolean
protected Level[]
protected final String
protected final String
name
andsubName
are the name of the hierarchy, respectively containing and not containing dimension name.protected final String
Fields inherited from class mondrian.olap.OlapElementBase
caption, visible
-
Constructor Summary
ModifierConstructorDescriptionprotected
HierarchyBase
(Dimension dimension, String subName, String caption, boolean visible, String description, boolean hasAll) -
Method Summary
Modifier and TypeMethodDescriptionboolean
equals
(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.boolean
hasAll()
abstract boolean
isRagged()
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, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface mondrian.olap.Annotated
getAnnotationMap
Methods inherited from interface mondrian.olap.Hierarchy
createMember, getAllMember, getDefaultMember, getDisplayFolder, getNullMember
Methods inherited from interface mondrian.olap.OlapElement
getCaption, getLocalized, isVisible
-
Field Details
-
dimension
-
subName
name
andsubName
are 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.SsasCompatibleNaming
is 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:
getUniqueName
in interfaceOlapElement
-
getUniqueNameSsas
Description copied from interface:Hierarchy
Returns the unique name of this hierarchy, always including the dimension name, e.g. "[Time].[Time]", regardless of whetherMondrianProperties.SsasCompatibleNaming
is enabled.- Specified by:
getUniqueNameSsas
in interfaceHierarchy
- Returns:
- Unique name of hierarchy.
-
getName
- Specified by:
getName
in interfaceOlapElement
-
getQualifiedName
Description copied from interface:OlapElement
Returns the name of this element qualified by its class, for example "hierarchy 'Customers'".- Specified by:
getQualifiedName
in interfaceOlapElement
-
isRagged
public abstract boolean isRagged() -
getDescription
- Specified by:
getDescription
in interfaceOlapElement
-
getDimension
Description copied from interface:Hierarchy
Returns the dimension this hierarchy belongs to.- Specified by:
getDimension
in interfaceHierarchy
- Specified by:
getDimension
in interfaceOlapElement
-
getLevels
Description copied from interface:Hierarchy
Returns 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:
getHierarchy
in interfaceOlapElement
-
hasAll
public boolean hasAll() -
equals
- Overrides:
equals
in classOlapElementBase
-
lookupChild
Description copied from interface:OlapElement
Looks up a child element, returning null if it does not exist.- Specified by:
lookupChild
in interfaceOlapElement
-
getAllMemberName
-
getAllLevelName
Returns the name of the 'all' level in this hierarchy.- Returns:
- name of the 'all' level
-