|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmondrian.olap.OlapElementBase
mondrian.olap.HierarchyBase
public abstract class HierarchyBase
Skeleton implementation for Hierarchy.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface mondrian.olap.OlapElement |
|---|
OlapElement.LocalizedProperty |
| Field Summary | |
|---|---|
protected String |
allLevelName
|
protected String |
allMemberName
|
protected String |
description
|
protected Dimension |
dimension
|
protected boolean |
hasAll
|
protected Level[] |
levels
|
protected String |
name
|
protected String |
subName
name and subName are the name of the
hierarchy, respectively containing and not containing dimension
name. |
protected String |
uniqueName
|
| Fields inherited from class mondrian.olap.OlapElementBase |
|---|
caption, visible |
| Constructor Summary | |
|---|---|
protected |
HierarchyBase(Dimension dimension,
String subName,
String caption,
boolean visible,
String description,
boolean hasAll)
|
| Method Summary | |
|---|---|
boolean |
equals(OlapElement mdxElement)
|
String |
getAllLevelName()
Returns the name of the 'all' level in this hierarchy. |
String |
getAllMemberName()
|
String |
getDescription()
|
Dimension |
getDimension()
Returns the dimension this hierarchy belongs to. |
Hierarchy |
getHierarchy()
|
Level[] |
getLevels()
Returns the levels in this hierarchy. |
String |
getName()
|
String |
getQualifiedName()
Returns the name of this element qualified by its class, for example "hierarchy 'Customers'". |
String |
getSubName()
Returns the name of the hierarchy sans dimension name. |
String |
getUniqueName()
|
String |
getUniqueNameSsas()
Returns the unique name of this hierarchy, always including the dimension name, e.g. |
boolean |
hasAll()
|
abstract boolean |
isRagged()
|
OlapElement |
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.Hierarchy |
|---|
createMember, getAllMember, getDefaultMember, getNullMember |
| Methods inherited from interface mondrian.olap.OlapElement |
|---|
getCaption, getLocalized, isVisible |
| Methods inherited from interface mondrian.olap.Annotated |
|---|
getAnnotationMap |
| Field Detail |
|---|
protected final Dimension dimension
protected final String subName
name and subName 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.
protected final String name
protected final String uniqueName
protected String description
protected Level[] levels
protected final boolean hasAll
protected String allMemberName
protected String allLevelName
| Constructor Detail |
|---|
protected HierarchyBase(Dimension dimension,
String subName,
String caption,
boolean visible,
String description,
boolean hasAll)
| Method Detail |
|---|
public String getSubName()
public String getUniqueName()
getUniqueName in interface OlapElementpublic String getUniqueNameSsas()
HierarchyMondrianProperties.SsasCompatibleNaming is enabled.
getUniqueNameSsas in interface Hierarchypublic String getName()
getName in interface OlapElementpublic String getQualifiedName()
OlapElement
getQualifiedName in interface OlapElementpublic abstract boolean isRagged()
public String getDescription()
getDescription in interface OlapElementpublic Dimension getDimension()
Hierarchy
getDimension in interface HierarchygetDimension in interface OlapElementpublic Level[] getLevels()
HierarchyIf a hierarchy is subject to access-control, some of the levels may
not be visible; use SchemaReader.getHierarchyLevels(mondrian.olap.Hierarchy) instead.
getLevels in interface Hierarchypublic Hierarchy getHierarchy()
getHierarchy in interface OlapElementpublic boolean hasAll()
hasAll in interface Hierarchypublic boolean equals(OlapElement mdxElement)
equals in class OlapElementBase
public OlapElement lookupChild(SchemaReader schemaReader,
Id.Segment s,
MatchType matchType)
OlapElement
lookupChild in interface OlapElementpublic String getAllMemberName()
public String getAllLevelName()
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||