|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Option
The common interface between objects that wrap the options and parameters specified via command-line arguments. Options provide the capability to store the passed options and arguments, validate the parameters, and execute an action over the parameters.
Method Summary | |
---|---|
void |
execute()
Executes this option based on the option name and parameters. |
java.lang.String |
getName()
Returns the name of this option. |
java.util.List<java.lang.String> |
getParameters()
Returns a list of parameters used to execute this option. |
boolean |
isValid()
Returns true if this option's parameters are valid. |
void |
process()
Processes the parameters found in this option. |
Method Detail |
---|
boolean isValid()
java.lang.String getName()
void process()
java.util.List<java.lang.String> getParameters()
void execute()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |