org.apache.tools.ant.dispatch

Class DispatchTask

public abstract class DispatchTask extends Task implements Dispatchable

Tasks extending this class may contain multiple actions. The method that is invoked for execution depends upon the value of the action attribute of the task.
Example:
<mytask action="list"/> will invoke the method with the signature public void list() in mytask's class. If the action attribute is not defined in the task or is empty, the execute() method will be called.
Method Summary
StringgetAction()
Get the action.
StringgetActionParameterName()
Get the action parameter name.
voidsetAction(String action)
Set the action.

Method Detail

getAction

public String getAction()
Get the action.

Returns: the action.

getActionParameterName

public String getActionParameterName()
Get the action parameter name.

Returns: the String "action" by default (can be overridden).

setAction

public void setAction(String action)
Set the action.

Parameters: action the method name.