Package mondrian.olap
Class OlapElementBase
java.lang.Object
mondrian.olap.OlapElementBase
- All Implemented Interfaces:
OlapElement
- Direct Known Subclasses:
CubeBase,DimensionBase,HierarchyBase,LevelBase,MemberBase,SetBase
OlapElementBase is an abstract base class for implementations of
OlapElement.- Since:
- 6 August, 2001
- Author:
- jhyde
-
Nested Class Summary
Nested classes/interfaces inherited from interface mondrian.olap.OlapElement
OlapElement.LocalizedProperty -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()protected intComputes this object's hash code.booleanbooleanequals(OlapElement mdxElement) Returns the display name of this catalog element.getLocalized(OlapElement.LocalizedProperty prop, Locale locale) Returns the value of a property (caption or description) of this element in the given locale.protected abstract org.apache.logging.log4j.LoggerinthashCode()booleanReturns whether this element is visible to end-users.voidsetCaption(String caption) Sets the display name of this catalog element.toString()Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface mondrian.olap.OlapElement
getDescription, getDimension, getHierarchy, getName, getQualifiedName, getUniqueName, lookupChild
-
Field Details
-
caption
-
visible
protected boolean visible
-
-
Constructor Details
-
OlapElementBase
protected OlapElementBase()
-
-
Method Details
-
getLogger
protected abstract org.apache.logging.log4j.Logger getLogger() -
equals
-
equals
-
hashCode
public int hashCode() -
computeHashCode
protected int computeHashCode()Computes this object's hash code. Called at most once.- Returns:
- hash code
-
toString
-
clone
-
getCaption
Returns the display name of this catalog element. If no caption is defined, the name is returned.- Specified by:
getCaptionin interfaceOlapElement
-
setCaption
Sets the display name of this catalog element. -
isVisible
public boolean isVisible()Description copied from interface:OlapElementReturns whether this element is visible to end-users.Visibility is a hint for client applications. An element's visibility does not affect how it is treated when MDX queries are evaluated.
- Specified by:
isVisiblein interfaceOlapElement- Returns:
- Whether this element is visible
-
getLocalized
Description copied from interface:OlapElementReturns the value of a property (caption or description) of this element in the given locale.- Specified by:
getLocalizedin interfaceOlapElementlocale- Locale- Returns:
- Localized caption or description
-