org.hackystat.sensor.xmldata.option
Class SdtOption

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

public class SdtOption
extends AbstractOption

The option that wraps the sensor data type information specified by the user.

Author:
Austen Ito

Field Summary
static java.lang.String OPTION_NAME
          This option's name, which is "-sdt".
 
Constructor Summary
SdtOption(XmlDataController controller, java.util.List<java.lang.String> parameters)
          Creates this option with the specified controller and parameters.
 
Method Summary
 boolean isValid()
          Returns true if the list of parameters contains only one element.
 void process()
          Processes this option by setting the sdt name found in this option.
 
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
This option's name, which is "-sdt".

See Also:
Constant Field Values
Constructor Detail

SdtOption

public SdtOption(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

process

public void process()
Processes this option by setting the sdt name found in this option.

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

isValid

public boolean isValid()
Returns true if the list of parameters contains only one element.

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