com.xmlcalabash.drivers
Class CalabashTask.Option

java.lang.Object
  extended by com.xmlcalabash.drivers.CalabashTask.Option
Direct Known Subclasses:
CalabashTask.Parameter
Enclosing class:
CalabashTask

public static class CalabashTask.Option
extends java.lang.Object

The Option inner class represents a pipeline option.


Constructor Summary
CalabashTask.Option()
           
 
Method Summary
 java.lang.String getName()
          Get the parameter name
 java.lang.String getValue()
          Get the parameter value
 void setName(java.lang.String name)
          Set the name.
 void setProject(org.apache.tools.ant.Project project)
          Set the current project
 void setUnless(java.lang.Object unlessCond)
          Set whether this input should NOT be used.
 void setUnless(java.lang.String unlessProperty)
          Set whether this input should NOT be used.
 void setValue(java.lang.String value)
          Set the value.
 boolean shouldUse()
          Ensures that the input passes the conditions placed on it with if and unless properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalabashTask.Option

public CalabashTask.Option()
Method Detail

setProject

public void setProject(org.apache.tools.ant.Project project)
Set the current project

Parameters:
project - the current project

setName

public void setName(java.lang.String name)
Set the name.

Parameters:
name - the parameter name

getName

public java.lang.String getName()
Get the parameter name

Returns:
the parameter name

setValue

public void setValue(java.lang.String value)
Set the value.

Parameters:
value - the parameter value

getValue

public java.lang.String getValue()
Get the parameter value

Returns:
the parameter value

setUnless

public void setUnless(java.lang.Object unlessCond)
Set whether this input should NOT be used. It will not be used if the expression evaluates to true or the name of a property which has been set, otherwise it will be used.

Parameters:
unlessCond - evaluated expression

setUnless

public void setUnless(java.lang.String unlessProperty)
Set whether this input should NOT be used. It will not be used if the expression evaluates to true or the name of a property which has been set, otherwise it will be used.

Parameters:
unlessProperty - evaluated expression

shouldUse

public boolean shouldUse()
Ensures that the input passes the conditions placed on it with if and unless properties.

Returns:
true if the task passes the "if" and "unless" parameters