public class StaticDataSource extends Object implements DataSource
Constructor and Description |
---|
StaticDataSource()
Default constructor.
|
StaticDataSource(Object o)
Constructs a new static data source.
|
Modifier and Type | Method and Description |
---|---|
StaticDataSource |
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,
ReportElement element)
Returns the value of the data source.
|
void |
setValue(Object o)
Sets the value of the data source.
|
public StaticDataSource()
public StaticDataSource(Object o)
o
- The value.public void setValue(Object o)
o
- The value.public Object getValue()
public Object getValue(ExpressionRuntime runtime, ReportElement 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 StaticDataSource clone() throws CloneNotSupportedException
clone
in interface DataSource
clone
in class Object
CloneNotSupportedException
- this should never happen.Copyright © 2002–2017 Pentaho Corporation. All rights reserved.