Package adams.core.option
Interface OptionConsumerWithOptionHandling<C,V>
-
- Type Parameters:
C- the type of data to consumeV- the type of data used for values
- All Superinterfaces:
CleanUpHandler,Destroyable,OptionConsumer<C,V>,OptionHandler
public interface OptionConsumerWithOptionHandling<C,V> extends OptionConsumer<C,V>, OptionHandler
Interface for option consumers that offer option handling.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcleanUpOptions()Cleans up the options.voiddefineOptions()Adds options to the internal list of options.OptionManagergetOptionManager()Returns the option manager.-
Methods inherited from interface adams.core.Destroyable
destroy
-
Methods inherited from interface adams.core.option.OptionConsumer
cleanUp, consume, consume, fromFile, fromString, getErrors, getInput, getLoggingLevel, getOutput, getSkippedProperties, getWarnings, globalInfo, hasErrors, hasWarnings, isQuiet, read, setInput, setLoggingLevel, setQuiet, setSkippedProperties
-
Methods inherited from interface adams.core.option.OptionHandler
toCommandLine
-
-
-
-
Method Detail
-
defineOptions
void defineOptions()
Adds options to the internal list of options.
Every subclass needs to add the necessary Option objects to its internal List with Option objects.- Specified by:
defineOptionsin interfaceOptionHandler
-
getOptionManager
OptionManager getOptionManager()
Returns the option manager.
Only needs to be implemented in the superclass, which declares the OptionManager object managing all the Option objects.- Specified by:
getOptionManagerin interfaceOptionHandler- Returns:
- the internal option list
-
cleanUpOptions
void cleanUpOptions()
Cleans up the options.- Specified by:
cleanUpOptionsin interfaceOptionHandler
-
-