mondrian.olap4j
Class MondrianOlap4jMember

java.lang.Object
  extended by mondrian.olap4j.MondrianOlap4jMetadataElement
      extended by mondrian.olap4j.MondrianOlap4jMember
All Implemented Interfaces:
org.olap4j.impl.Named, Member, MetadataElement, OlapWrapper
Direct Known Subclasses:
MondrianOlap4jMeasure

 class MondrianOlap4jMember
extends MondrianOlap4jMetadataElement
implements Member, org.olap4j.impl.Named

Implementation of Member for the Mondrian OLAP engine, as a wrapper around a mondrian Member.

Since:
May 25, 2007
Author:
jhyde

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.olap4j.metadata.Member
Member.TreeOp, Member.Type
 
Field Summary
(package private)  Member member
           
(package private)  MondrianOlap4jSchema olap4jSchema
           
 
Constructor Summary
MondrianOlap4jMember(MondrianOlap4jSchema olap4jSchema, Member mondrianMember)
           
 
Method Summary
 boolean equals(Object obj)
           
 List<Member> getAncestorMembers()
           
 String getCaption()
           
 int getChildMemberCount()
           
 NamedList<MondrianOlap4jMember> getChildMembers()
           
 Member getDataMember()
           
 int getDepth()
           
 String getDescription()
           
 Dimension getDimension()
           
 ParseTreeNode getExpression()
           
 Hierarchy getHierarchy()
           
 Level getLevel()
           
 Member.Type getMemberType()
           
 String getName()
           
protected  OlapElement getOlapElement()
          Returns the Mondrian metadata element inside this wrapper, or null if there is none.
 int getOrdinal()
           
 MondrianOlap4jMember getParentMember()
           
 NamedList<Property> getProperties()
           
 String getPropertyFormattedValue(Property property)
           
 Object getPropertyValue(Property property)
           
 int getSolveOrder()
           
 String getUniqueName()
           
 int hashCode()
           
 boolean isAll()
           
 boolean isCalculated()
           
 boolean isCalculatedInQuery()
           
 boolean isChildOrEqualTo(Member member)
           
 boolean isHidden()
           
 boolean isVisible()
           
 void setProperty(Property property, Object value)
           
 String toString()
           
 
Methods inherited from class mondrian.olap4j.MondrianOlap4jMetadataElement
isWrapperFor, unwrap, unwrapImpl
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

member

final Member member

olap4jSchema

final MondrianOlap4jSchema olap4jSchema
Constructor Detail

MondrianOlap4jMember

MondrianOlap4jMember(MondrianOlap4jSchema olap4jSchema,
                     Member mondrianMember)
Method Detail

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

getChildMembers

public NamedList<MondrianOlap4jMember> getChildMembers()
                                                throws OlapException
Specified by:
getChildMembers in interface Member
Throws:
OlapException

getChildMemberCount

public int getChildMemberCount()
                        throws OlapException
Specified by:
getChildMemberCount in interface Member
Throws:
OlapException

getParentMember

public MondrianOlap4jMember getParentMember()
Specified by:
getParentMember in interface Member

getLevel

public Level getLevel()
Specified by:
getLevel in interface Member

getHierarchy

public Hierarchy getHierarchy()
Specified by:
getHierarchy in interface Member

getDimension

public Dimension getDimension()
Specified by:
getDimension in interface Member

getMemberType

public Member.Type getMemberType()
Specified by:
getMemberType in interface Member

isAll

public boolean isAll()
Specified by:
isAll in interface Member

isChildOrEqualTo

public boolean isChildOrEqualTo(Member member)
Specified by:
isChildOrEqualTo in interface Member

isCalculated

public boolean isCalculated()
Specified by:
isCalculated in interface Member

getSolveOrder

public int getSolveOrder()
Specified by:
getSolveOrder in interface Member

getExpression

public ParseTreeNode getExpression()
Specified by:
getExpression in interface Member

getAncestorMembers

public List<Member> getAncestorMembers()
Specified by:
getAncestorMembers in interface Member

isCalculatedInQuery

public boolean isCalculatedInQuery()
Specified by:
isCalculatedInQuery in interface Member

getPropertyValue

public Object getPropertyValue(Property property)
Specified by:
getPropertyValue in interface Member

getPropertyFormattedValue

public String getPropertyFormattedValue(Property property)
Specified by:
getPropertyFormattedValue in interface Member

setProperty

public void setProperty(Property property,
                        Object value)
                 throws OlapException
Specified by:
setProperty in interface Member
Throws:
OlapException

getProperties

public NamedList<Property> getProperties()
Specified by:
getProperties in interface Member

getOrdinal

public int getOrdinal()
Specified by:
getOrdinal in interface Member

isHidden

public boolean isHidden()
Specified by:
isHidden in interface Member

getDepth

public int getDepth()
Specified by:
getDepth in interface Member

getDataMember

public Member getDataMember()
Specified by:
getDataMember in interface Member

getName

public String getName()
Specified by:
getName in interface org.olap4j.impl.Named
Specified by:
getName in interface MetadataElement

getUniqueName

public String getUniqueName()
Specified by:
getUniqueName in interface MetadataElement

getCaption

public String getCaption()
Specified by:
getCaption in interface MetadataElement

getDescription

public String getDescription()
Specified by:
getDescription in interface MetadataElement

isVisible

public boolean isVisible()
Specified by:
isVisible in interface MetadataElement

getOlapElement

protected OlapElement getOlapElement()
Description copied from class: MondrianOlap4jMetadataElement
Returns the Mondrian metadata element inside this wrapper, or null if there is none.

Specified by:
getOlapElement in class MondrianOlap4jMetadataElement
Returns:
The Mondrian metadata element, if any

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