mondrian.olap
Class OlapElementBase

java.lang.Object
  extended by mondrian.olap.OlapElementBase
All Implemented Interfaces:
OlapElement
Direct Known Subclasses:
CubeBase, DimensionBase, HierarchyBase, LevelBase, MemberBase, SetBase

public abstract class OlapElementBase
extends java.lang.Object
implements OlapElement

OlapElementBase is an abstract base class for implementations of OlapElement.

Since:
6 August, 2001
Version:
$Id: //open/mondrian/src/main/mondrian/olap/OlapElementBase.java#22 $
Author:
jhyde

Field Summary
protected  java.lang.String caption
           
 
Constructor Summary
protected OlapElementBase()
           
 
Method Summary
 java.lang.Object clone()
           
protected  int computeHashCode()
          Computes this object's hash code.
 boolean equals(java.lang.Object o)
           
 boolean equals(OlapElement mdxElement)
           
 java.lang.String getCaption()
          Returns the display name of this catalog element.
protected abstract  org.apache.log4j.Logger getLogger()
           
 int hashCode()
           
 void setCaption(java.lang.String caption)
          Sets the display name of this catalog element.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface mondrian.olap.OlapElement
getDescription, getDimension, getHierarchy, getName, getQualifiedName, getUniqueName, lookupChild
 

Field Detail

caption

protected java.lang.String caption
Constructor Detail

OlapElementBase

protected OlapElementBase()
Method Detail

getLogger

protected abstract org.apache.log4j.Logger getLogger()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

equals

public boolean equals(OlapElement mdxElement)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

computeHashCode

protected int computeHashCode()
Computes this object's hash code. Called at most once.

Returns:
hash code

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

getCaption

public java.lang.String getCaption()
Returns the display name of this catalog element. If no caption is defined, the name is returned.

Specified by:
getCaption in interface OlapElement

setCaption

public void setCaption(java.lang.String caption)
Sets the display name of this catalog element.


Get Mondrian at SourceForge.net. Fast, secure and free Open Source software downloads