public interface OptionHandler
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getOptions()
Gets the current option settings for the OptionHandler.
|
java.util.Enumeration<Option> |
listOptions()
Returns an enumeration of all the available options..
|
static OptionHandler |
makeCopy(OptionHandler toCopy)
Creates an instance of the class that the given option handler belongs to and sets the options for this
new instance by taking the option settings from the given option handler.
|
void |
setOptions(java.lang.String[] options)
Sets the OptionHandler's options using the given list.
|
java.util.Enumeration<Option> listOptions()
void setOptions(java.lang.String[] options) throws java.lang.Exception
options
- the list of options as an array of stringsjava.lang.Exception
- if an option is not supportedjava.lang.String[] getOptions()
static OptionHandler makeCopy(OptionHandler toCopy) throws java.lang.Exception
toCopy
- the option handler to copyjava.lang.Exception
- if the object could not be deep copied either