Copyright © 2011 Citra Technologies. All Rights Reserved.

com.citra.pivot.olap.data
Class DefaultOlapCell

java.lang.Object
  extended by com.citra.pivot.olap.data.DefaultOlapCell
All Implemented Interfaces:
OlapCell

public class DefaultOlapCell
extends Object
implements OlapCell

DefaultOlapCell is the default cell implementation.


Field Summary
protected  String formattedValue
          the cell's formatted value
protected  OlapMeasure measure
          the cell's measure
protected  Object value
          the cell's value
 
Constructor Summary
DefaultOlapCell(Object value, OlapMeasure measure)
          Constructs a DefaultOlapCell.
DefaultOlapCell(Object value, String formattedValue, OlapMeasure measure)
          Constructs a DefaultOlapCell.
 
Method Summary
 String getFormattedValue()
          Retrieves the formatted value as a string.
 OlapMeasure getMeasure()
          Retrieves the measure metadata of the value.
 Object getValue()
          Retrieves the value as a java object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

protected Object value
the cell's value


formattedValue

protected String formattedValue
the cell's formatted value


measure

protected OlapMeasure measure
the cell's measure

Constructor Detail

DefaultOlapCell

public DefaultOlapCell(Object value,
                       OlapMeasure measure)
Constructs a DefaultOlapCell.


DefaultOlapCell

public DefaultOlapCell(Object value,
                       String formattedValue,
                       OlapMeasure measure)
Constructs a DefaultOlapCell.

Method Detail

getFormattedValue

public String getFormattedValue()
Retrieves the formatted value as a string.

Specified by:
getFormattedValue in interface OlapCell
Returns:
the formatted value as it is received from the datasource

getMeasure

public OlapMeasure getMeasure()
Retrieves the measure metadata of the value.

Specified by:
getMeasure in interface OlapCell
Returns:
the value's measure association

getValue

public Object getValue()
Retrieves the value as a java object.

Specified by:
getValue in interface OlapCell
Returns:
the value as it is received from the datasource

Copyright © 2011 Citra Technologies. All Rights Reserved.