org.hackystat.sensor.xmldata.option
Class VerboseOption

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

public class VerboseOption
extends AbstractOption

The option called when the user wishes to display additional information that is useful when debugging.

Author:
aito

Field Summary
static java.lang.String OPTION_NAME
          The option name, which is "-verbose".
 
Constructor Summary
VerboseOption(XmlDataController controller, java.util.List<java.lang.String> parameters)
          Creates this option with the specified controller and the specified list of parameters.
 
Method Summary
 boolean isValid()
          Returns true if this option is valid.
 void process()
          Processes this option by setting the verbose mode to true.
 
Methods inherited from class org.hackystat.sensor.xmldata.option.AbstractOption
execute, getController, getName, getParameters
 
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 option name, which is "-verbose".

See Also:
Constant Field Values
Constructor Detail

VerboseOption

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

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

process

public void process()
Processes this option by setting the verbose mode to true.

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

isValid

public boolean isValid()
Returns true if this option is valid. This option is valid if no parameters are specified.

Specified by:
isValid in interface Option
Specified by:
isValid in class AbstractOption
Returns:
true if this argument has not parameters.