|
|||||||||
| 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.
| Field Summary | |
|---|---|
protected java.lang.String |
allLevelName
|
protected java.lang.String |
allMemberName
|
protected java.lang.String |
description
|
protected Dimension |
dimension
|
protected boolean |
hasAll
|
protected Level[] |
levels
|
protected java.lang.String |
name
|
protected java.lang.String |
subName
name and subName are the name of the
hierarchy, respectively containing and not containing dimension
name. |
protected java.lang.String |
uniqueName
|
| Fields inherited from class mondrian.olap.OlapElementBase |
|---|
caption |
| Constructor Summary | |
|---|---|
protected |
HierarchyBase(Dimension dimension,
java.lang.String subName,
boolean hasAll)
|
| Method Summary | |
|---|---|
boolean |
equals(OlapElement mdxElement)
|
java.lang.String |
getAllLevelName()
Returns the name of the 'all' level in this hierarchy. |
java.lang.String |
getAllMemberName()
|
java.lang.String |
getDescription()
|
Dimension |
getDimension()
Returns the dimension this hierarchy belongs to. |
Hierarchy |
getHierarchy()
|
Level[] |
getLevels()
Returns the levels in this hierarchy. |
java.lang.String |
getName()
|
java.lang.String |
getQualifiedName()
Returns the name of this element qualified by its class, for example "hierarchy 'Customers'". |
java.lang.String |
getSubName()
Returns the name of the hierarchy sans dimension name. |
java.lang.String |
getUniqueName()
|
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, getLogger, hashCode, 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 |
| Field Detail |
|---|
protected final Dimension dimension
protected final java.lang.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 java.lang.String name
protected final java.lang.String uniqueName
protected java.lang.String description
protected Level[] levels
protected final boolean hasAll
protected java.lang.String allMemberName
protected java.lang.String allLevelName
| Constructor Detail |
|---|
protected HierarchyBase(Dimension dimension,
java.lang.String subName,
boolean hasAll)
| Method Detail |
|---|
public java.lang.String getSubName()
public java.lang.String getUniqueName()
getUniqueName in interface OlapElementpublic java.lang.String getName()
getName in interface OlapElementpublic java.lang.String getQualifiedName()
OlapElement
getQualifiedName in interface OlapElementpublic abstract boolean isRagged()
public java.lang.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 java.lang.String getAllMemberName()
public java.lang.String getAllLevelName()
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||