Class ExcelAntSetStringCell

java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.poi.ss.excelant.ExcelAntSet
org.apache.poi.ss.excelant.ExcelAntSetStringCell
All Implemented Interfaces:
Cloneable

public class ExcelAntSetStringCell extends ExcelAntSet
Class for use in an Ant build script that sets the value of an Excel sheet cell using the cell id ('Sheet Name'!cellId).
  • Field Summary

    Fields inherited from class org.apache.poi.ss.excelant.ExcelAntSet

    cellStr, wbUtil

    Fields inherited from class org.apache.tools.ant.Task

    target, taskName, taskType, wrapper

    Fields inherited from class org.apache.tools.ant.ProjectComponent

    description, location, project
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    Return the value that will be set into the cell.
    void
    Set the value of the cell to the String passed in.

    Methods inherited from class org.apache.poi.ss.excelant.ExcelAntSet

    getCell, setCell, setWorkbookUtil

    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

    Methods inherited from class org.apache.tools.ant.ProjectComponent

    clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ExcelAntSetStringCell

      public ExcelAntSetStringCell()
  • Method Details

    • setValue

      public void setValue(String value)
      Set the value of the cell to the String passed in.
      Parameters:
      value - The string-value that should be set when this task is executed.
    • getCellValue

      public String getCellValue()
      Return the value that will be set into the cell.
      Returns:
      The string-value of the cell as populated via setValue(), null if the value was not set yet.
    • execute

      public void execute() throws org.apache.tools.ant.BuildException
      Overrides:
      execute in class org.apache.tools.ant.Task
      Throws:
      org.apache.tools.ant.BuildException