Package ise.antelope.tasks
Class Case
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- ise.antelope.tasks.Case
-
- All Implemented Interfaces:
Breakable
,java.lang.Cloneable
,org.apache.tools.ant.TaskContainer
- Direct Known Subclasses:
DefaultCase
public class Case extends org.apache.tools.ant.Task implements org.apache.tools.ant.TaskContainer, Breakable
This TaskContainer is intended to be nested into the Switch task.- Version:
- $Revision: 111 $
-
-
Constructor Summary
Constructors Constructor Description Case()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBreak(Break b)
Required for Breakable interface.void
addTask(org.apache.tools.ant.Task task)
Adds a feature to the Task attribute of the Case objectboolean
doBreak()
Required for Breakable interface.void
execute()
Execute all nested tasks, checking for Breakables.java.lang.String
getValue()
void
setBreak(boolean b)
Required for Breakable interface.void
setValue(java.lang.String value)
Set the value for this case.-
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
-
setValue
public void setValue(java.lang.String value)
Set the value for this case. This value is used by the Switch task to decide if this task should execute.- Parameters:
value
- the value.
-
getValue
public java.lang.String getValue()
- Returns:
- the value for this case.
-
setBreak
public void setBreak(boolean b)
Required for Breakable interface.
-
doBreak
public boolean doBreak()
Required for Breakable interface.
-
addBreak
public void addBreak(Break b)
Required for Breakable interface.
-
addTask
public void addTask(org.apache.tools.ant.Task task) throws org.apache.tools.ant.BuildException
Adds a feature to the Task attribute of the Case object- Specified by:
addTask
in interfaceorg.apache.tools.ant.TaskContainer
- Parameters:
task
- The feature to be added to the Task attribute- Throws:
org.apache.tools.ant.BuildException
- Description of Exception
-
execute
public void execute() throws org.apache.tools.ant.BuildException
Execute all nested tasks, checking for Breakables.- Overrides:
execute
in classorg.apache.tools.ant.Task
- Throws:
org.apache.tools.ant.BuildException
- Description of Exception
-
-