org.hackystat.sensor.xmldata.option
Class ArgListOption

java.lang.Object
  extended by org.hackystat.sensor.xmldata.option.AbstractOption
      extended by org.hackystat.sensor.xmldata.option.ArgListOption
All Implemented Interfaces:
Option

public class ArgListOption
extends AbstractOption

The option used when specifying the command-line arguments via a text file.

Author:
aito

Field Summary
static java.lang.String OPTION_NAME
          The name of this option, which is "-argList".
 
Constructor Summary
ArgListOption(XmlDataController controller, java.util.List<java.lang.String> parameters)
          Creates this option with the specified controller and parameters.
 
Method Summary
 void execute()
          Executes this option using the specified argument list file.
 boolean isValid()
          Returns true if the specified parameters contains only one element, which is a valid text file containing the list of command-line arguments.
 
Methods inherited from class org.hackystat.sensor.xmldata.option.AbstractOption
getController, getName, getParameters, process
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPTION_NAME

public static final java.lang.String OPTION_NAME
The name of this option, which is "-argList".

See Also:
Constant Field Values
Constructor Detail

ArgListOption

public ArgListOption(XmlDataController controller,
                     java.util.List<java.lang.String> parameters)
Creates this option with the specified controller and parameters.

Parameters:
controller - the specified controller.
parameters - the specified parameters.
Method Detail

isValid

public boolean isValid()
Returns true if the specified parameters contains only one element, which is a valid text file containing the list of command-line arguments.

Specified by:
isValid in interface Option
Specified by:
isValid in class AbstractOption
Returns:
true if the parameters are valid, false if not.

execute

public void execute()
Executes this option using the specified argument list file.

Specified by:
execute in interface Option
Overrides:
execute in class AbstractOption