public final class FormulaFunction extends AbstractFunction
Constructor and Description |
---|
FormulaFunction()
Default Constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Clones the expression, expression should be reinitialized after the cloning.
|
Boolean |
getFailOnError() |
String |
getFormula()
Returns the formula (incuding the optional namespace) as defined by the OpenFormula standard.
|
String |
getFormulaExpression()
Returns the formula expression.
|
String |
getFormulaNamespace()
Returns the formula namespace.
|
String |
getInitial()
Returns the initial formula (incuding the optional namespace) as defined by the OpenFormula standard.
|
String |
getInitialExpression()
Returns the initial formula expression.
|
String |
getInitialNamespace()
Returns the formula namespace if the initial formula.
|
Expression |
getInstance()
Return a completly separated copy of this function.
|
Object |
getValue()
Return the computed value of the formula.
|
void |
reportInitialized(ReportEvent event)
Resets the function state.
|
void |
setFailOnError(Boolean failOnError) |
void |
setFormula(String formula)
Defines the formula (incuding the optional namespace) as defined by the OpenFormula standard.
|
void |
setInitial(String initial)
Defines the initial formula (incuding the optional namespace) as defined by the OpenFormula standard.
|
groupFinished, groupStarted, itemsAdvanced, itemsFinished, itemsStarted, reportDone, reportFinished, reportStarted, summaryRowSelection
getDataRow, getDependencyLevel, getName, getReportConfiguration, getResourceBundleFactory, getRuntime, isActive, isDeepTraversing, isPreserve, setActive, setDependencyLevel, setName, setPreserve, setRuntime
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDataRow, getDependencyLevel, getName, getReportConfiguration, getResourceBundleFactory, getRuntime, isActive, isDeepTraversing, isPreserve, setDependencyLevel, setName, setRuntime
public Boolean getFailOnError()
public void setFailOnError(Boolean failOnError)
public String getInitial()
public String getInitialExpression()
public String getInitialNamespace()
public void setInitial(String initial)
initial
- the initial formula as text.public void reportInitialized(ReportEvent event)
reportInitialized
in interface ReportListener
reportInitialized
in class AbstractFunction
event
- the report event.public String getFormula()
public String getFormulaNamespace()
public String getFormulaExpression()
public void setFormula(String formula)
formula
- the formula as text.public Object getValue()
public Object clone() throws CloneNotSupportedException
Expression maintain no state, cloning is done at the beginning of the report processing to disconnect the used expression from any other object space.
clone
in interface Expression
clone
in class AbstractExpression
CloneNotSupportedException
- this should never happen.public Expression getInstance()
getInstance
in interface Expression
getInstance
in class AbstractExpression