Copyright © 2011 Citra Technologies. All Rights Reserved.

com.citra.pivot.olap
Class DefaultOlapEdge

java.lang.Object
  extended by com.citra.pivot.olap.DefaultOlapEdge
All Implemented Interfaces:
OlapEdge

public class DefaultOlapEdge
extends Object
implements OlapEdge

DefaultOlapEdge is the default implementation of an OlapEdge.


Field Summary
protected  OlapMeasure measure
          the assigned measure
protected  OlapMember member
          the assigned member
protected  String name
          the displayed name
protected  int type
          the type that the member/measure combination represents
 
Constructor Summary
DefaultOlapEdge(OlapMember member)
          Constructs a DefaultOlapEdge having an olap member and no measure.
DefaultOlapEdge(OlapMember member, OlapMeasure measure)
          Constructs a DefaultOlapEdge having an olap member, measure and a normal type.
DefaultOlapEdge(OlapMember member, OlapMeasure measure, int type)
          Constructs a DefaultOlapEdge having an olap member, measure and a specified type.
 
Method Summary
 OlapMeasure getMeasure()
          Retrieves the assigned measure.
 OlapMember getMember()
          Retrieves the assigned member.
 String getName()
          Retrieves the string name to display.
 int getType()
          Retrieves the member's type.
 void setName(String name)
          Assigns the edge's name.
 String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

measure

protected OlapMeasure measure
the assigned measure


member

protected OlapMember member
the assigned member


type

protected int type
the type that the member/measure combination represents


name

protected String name
the displayed name

Constructor Detail

DefaultOlapEdge

public DefaultOlapEdge(OlapMember member)
Constructs a DefaultOlapEdge having an olap member and no measure.


DefaultOlapEdge

public DefaultOlapEdge(OlapMember member,
                       OlapMeasure measure)
Constructs a DefaultOlapEdge having an olap member, measure and a normal type.


DefaultOlapEdge

public DefaultOlapEdge(OlapMember member,
                       OlapMeasure measure,
                       int type)
Constructs a DefaultOlapEdge having an olap member, measure and a specified type.

Method Detail

getMeasure

public OlapMeasure getMeasure()
Retrieves the assigned measure.

Specified by:
getMeasure in interface OlapEdge
Returns:
the olap measure

getMember

public OlapMember getMember()
Retrieves the assigned member.

Specified by:
getMember in interface OlapEdge
Returns:
the olap member

getName

public String getName()
Retrieves the string name to display.

Specified by:
getName in interface OlapEdge
Returns:
the pivoted member's name

getType

public int getType()
Retrieves the member's type.

Specified by:
getType in interface OlapEdge
Returns:
the pivoted member's type

setName

public void setName(String name)
Assigns the edge's name.

Parameters:
name - the name to assign

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 Object
Returns:
a string representation of the object.

Copyright © 2011 Citra Technologies. All Rights Reserved.