|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pentaho.reporting.engine.classic.core.filter.StaticDataSource
public class StaticDataSource
A data source that returns a constant value. An example is a label on a report.
Constructor Summary | |
---|---|
StaticDataSource()
Default constructor. |
|
StaticDataSource(Object o)
Constructs a new static data source. |
Method Summary | |
---|---|
Object |
clone()
Clones the data source, although the enclosed 'static' value is not cloned. |
Object |
getValue()
Returns the value set in this datasource. |
Object |
getValue(ExpressionRuntime runtime,
Element element)
Returns the value of the data source. |
void |
setValue(Object o)
Sets the value of the data source. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StaticDataSource()
public StaticDataSource(Object o)
o
- The value.Method Detail |
---|
public void setValue(Object o)
o
- The value.public Object getValue()
public Object getValue(ExpressionRuntime runtime, Element element)
getValue
in interface DataSource
runtime
- the expression runtime that is used to evaluate formulas and expressions when computing the value of
this filter.element
-
public Object clone() throws CloneNotSupportedException
clone
in interface DataSource
clone
in class Object
CloneNotSupportedException
- this should never happen.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |