public abstract class HierarchyBase extends OlapElementBase implements Hierarchy
Hierarchy
.OlapElement.LocalizedProperty
Modifier and Type | Field and Description |
---|---|
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 |
caption, visible
Modifier | Constructor and Description |
---|---|
protected |
HierarchyBase(Dimension dimension,
String subName,
String caption,
boolean visible,
String description,
boolean hasAll) |
Modifier and Type | Method and Description |
---|---|
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.
|
clone, computeHashCode, equals, getCaption, getLocalized, getLogger, hashCode, isVisible, setCaption, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
createMember, getAllMember, getDefaultMember, getNullMember
getCaption, getLocalized, isVisible
getAnnotationMap
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
public String getSubName()
public String getUniqueName()
getUniqueName
in interface OlapElement
public String getUniqueNameSsas()
Hierarchy
MondrianProperties.SsasCompatibleNaming
is enabled.getUniqueNameSsas
in interface Hierarchy
public String getName()
getName
in interface OlapElement
public String getQualifiedName()
OlapElement
getQualifiedName
in interface OlapElement
public abstract boolean isRagged()
public String getDescription()
getDescription
in interface OlapElement
public Dimension getDimension()
Hierarchy
getDimension
in interface Hierarchy
getDimension
in interface OlapElement
public Level[] getLevels()
Hierarchy
If a hierarchy is subject to access-control, some of the levels may
not be visible; use SchemaReader.getHierarchyLevels(mondrian.olap.Hierarchy)
instead.
public Hierarchy getHierarchy()
getHierarchy
in interface OlapElement
public boolean equals(OlapElement mdxElement)
equals
in class OlapElementBase
public OlapElement lookupChild(SchemaReader schemaReader, Id.Segment s, MatchType matchType)
OlapElement
lookupChild
in interface OlapElement
public String getAllMemberName()
public String getAllLevelName()
Copyright © 2019 Hitachi Vantara. All rights reserved.