|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hackystat.sensor.xmldata.option.OptionHandler
public class OptionHandler
The class that handles the options created by the XmlDataController. This class stores, validates, and executes the options.
Constructor Summary | |
---|---|
OptionHandler(XmlDataController controller)
Constructs this handler with the specified controller. |
Method Summary | |
---|---|
void |
addOption(Option option)
Adds the specified option to this class. |
void |
clearOptions()
Clears all of the options managed by this class. |
void |
execute()
Executes all of the stored options that have operations to execute on their wrapped parameters. |
boolean |
hasRequiredOptions()
Returns true if this class contains all of the required options. |
boolean |
isOption(java.lang.String argument)
A helper method that returns true if the specified string is an option. |
boolean |
isOptionsValid()
Returns true if all of the options stored in this class are valid and contain no duplicate options. |
void |
processOptions()
Processes all of the options wrapped in this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OptionHandler(XmlDataController controller)
controller
- the specified controller.Method Detail |
---|
public void addOption(Option option)
option
- the specified option to add.public void clearOptions()
public boolean isOptionsValid()
public boolean hasRequiredOptions()
public boolean isOption(java.lang.String argument)
argument
- the string to test.
public void processOptions()
public void execute()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |