public class ExcelAntHandlerTask
extends org.apache.tools.ant.Task
<handler>
tag in the Ant task.
Its purpose is to provide a way to manipulate a workbook in the course of an ExcelAnt task. The idea being to model a way for test writers to simulate the behaviors of the workbook.
Suppose, for example, you have a workbook that has a worksheet that reacts to values entered or selected by the user. It's possible in Excel to change other cells based on this but this isn't easily possible in POI. In ExcelAnt we handle this using the Handler, which is a Java class you write to manipulate the workbook.
In order to use this tag you must write a class that implements the
IExcelAntWorkbookHandler
interface. After writing the
class you should package it and it's dependencies into a jar file to
add as library in your Ant build file.
Constructor and Description |
---|
ExcelAntHandlerTask() |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
void |
setClassName(java.lang.String cName) |
protected void |
setEAWorkbookUtil(ExcelAntWorkbookUtil wkbkUtil) |
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
public void setClassName(java.lang.String cName)
protected void setEAWorkbookUtil(ExcelAntWorkbookUtil wkbkUtil)
public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
Copyright 2022 The Apache Software Foundation or its licensors, as applicable.]]>