Copyright © 2011 Citra Technologies. All Rights Reserved.

com.citra.pivot.olap.metadata.impl
Class OlapMemberImpl

java.lang.Object
  extended by com.citra.pivot.olap.metadata.impl.AbstractOlapObject
      extended by com.citra.pivot.olap.metadata.impl.OlapMemberImpl
All Implemented Interfaces:
OlapMember, OlapObject
Direct Known Subclasses:
OlapMeasureImpl

public class OlapMemberImpl
extends AbstractOlapObject
implements OlapMember

OlapMemberImpl is a modifiable OlapMember implementation.


Field Summary
protected  OlapLevelImpl level
          the member's level
protected  int memberCount
          the member's children count
 
Fields inherited from class com.citra.pivot.olap.metadata.impl.AbstractOlapObject
caption, description, id, name
 
Constructor Summary
OlapMemberImpl(String name, String id, String caption, String description, OlapLevelImpl level)
          Constructs an OlapMemberImpl.
 
Method Summary
 OlapLevel getLevel()
          Retrieves the level this member is part of.
 int getMemberCount()
          Retrieves the number of children this member has.
 void setLevel(OlapLevelImpl level)
          Assigns the level of this member.
 void setMemberCount(int memberCount)
          Assigns the children member count of this member.
 String toString()
          Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.

The toString method for class Object returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:

 getClass().getName() + '@' + Integer.toHexString(hashCode())
 
 
Methods inherited from class com.citra.pivot.olap.metadata.impl.AbstractOlapObject
getCaption, getDescription, getID, getName, setCaption, setDescription, setID, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.citra.pivot.olap.metadata.OlapObject
getCaption, getDescription, getID, getName
 

Field Detail

level

protected OlapLevelImpl level
the member's level


memberCount

protected int memberCount
the member's children count

Constructor Detail

OlapMemberImpl

public OlapMemberImpl(String name,
                      String id,
                      String caption,
                      String description,
                      OlapLevelImpl level)
Constructs an OlapMemberImpl.

Method Detail

getLevel

public OlapLevel getLevel()
Retrieves the level this member is part of.

Specified by:
getLevel in interface OlapMember
Returns:
the member's level

getMemberCount

public int getMemberCount()
Retrieves the number of children this member has.

Specified by:
getMemberCount in interface OlapMember
Returns:
the member's children count

setLevel

public void setLevel(OlapLevelImpl level)
Assigns the level of this member.

Parameters:
level - the level to assign

setMemberCount

public void setMemberCount(int memberCount)
Assigns the children member count of this member.

Parameters:
memberCount - the numer of children this member has

toString

public String toString()
Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.

The toString method for class Object returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:

 getClass().getName() + '@' + Integer.toHexString(hashCode())
 

Overrides:
toString in class AbstractOlapObject
Returns:
a string representation of the object.

Copyright © 2011 Citra Technologies. All Rights Reserved.