Package org.apache.poi.ss.excelant
Class ExcelAntEvaluateCell
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- org.apache.poi.ss.excelant.ExcelAntEvaluateCell
-
- All Implemented Interfaces:
Cloneable
public class ExcelAntEvaluateCell extends org.apache.tools.ant.TaskInstances of this class are used to evaluate a single cell. This is usually after some values have been set. The evaluation is actually performed by a WorkbookUtil instance. The evaluate() method of the WorkbookUtil class returns an EvaluationResult which encapsulates the results and information from the evaluation.
-
-
Constructor Summary
Constructors Constructor Description ExcelAntEvaluateCell()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()protected StringgetCell()protected doublegetExpectedValue()protected doublegetPrecision()ExcelAntEvaluationResultgetResult()protected booleanrequiredToPass()voidsetCell(String cell)voidsetExpectedValue(double expectedValue)protected voidsetGlobalPrecision(double prec)voidsetPrecision(double precision)voidsetRequiredToPass(boolean val)voidsetShowDelta(boolean value)protected voidsetWorkbookUtil(ExcelAntWorkbookUtil wb)protected booleanshowDelta()-
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
-
-
-
-
Method Detail
-
setWorkbookUtil
protected void setWorkbookUtil(ExcelAntWorkbookUtil wb)
-
setShowDelta
public void setShowDelta(boolean value)
-
showDelta
protected boolean showDelta()
-
setCell
public void setCell(String cell)
-
setRequiredToPass
public void setRequiredToPass(boolean val)
-
requiredToPass
protected boolean requiredToPass()
-
setExpectedValue
public void setExpectedValue(double expectedValue)
-
setPrecision
public void setPrecision(double precision)
-
setGlobalPrecision
protected void setGlobalPrecision(double prec)
-
getCell
protected String getCell()
-
getExpectedValue
protected double getExpectedValue()
-
getPrecision
protected double getPrecision()
-
execute
public void execute() throws org.apache.tools.ant.BuildException- Overrides:
executein classorg.apache.tools.ant.Task- Throws:
org.apache.tools.ant.BuildException
-
getResult
public ExcelAntEvaluationResult getResult()
-
-