Package weka.core
Class ListOptions
java.lang.Object
weka.core.ListOptions
- All Implemented Interfaces:
OptionHandler
,RevisionHandler
Lists the options of an OptionHandler
- Version:
- $Revision: 1.2 $
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerate()
generates the options string.generates a string to print as help on the consolereturns the current classnameString[]
Gets the current settings of this object.Returns the revision string.Returns an enumeration describing the available options.static void
runs the javadoc producer with the given commandline optionsvoid
setClassname
(String value) sets the classname of the class to generate the Javadoc forvoid
setOptions
(String[] options) Parses a given list of options.
-
Constructor Details
-
ListOptions
public ListOptions()
-
-
Method Details
-
listOptions
Returns an enumeration describing the available options.- Specified by:
listOptions
in interfaceOptionHandler
- Returns:
- an enumeration of all the available options.
-
setOptions
Parses a given list of options.- Specified by:
setOptions
in interfaceOptionHandler
- Parameters:
options
- the list of options as an array of strings- Throws:
Exception
- if an option is not supported
-
getOptions
Gets the current settings of this object.- Specified by:
getOptions
in interfaceOptionHandler
- Returns:
- an array of strings suitable for passing to setOptions
-
setClassname
sets the classname of the class to generate the Javadoc for- Parameters:
value
- the new classname
-
getClassname
returns the current classname- Returns:
- the current classname
-
generateHelp
generates a string to print as help on the console- Returns:
- the generated help
-
generate
generates the options string.- Returns:
- the options string
- Throws:
Exception
- in case the generation fails
-
getRevision
Returns the revision string.- Specified by:
getRevision
in interfaceRevisionHandler
- Returns:
- the revision
-
main
runs the javadoc producer with the given commandline options- Parameters:
options
- the commandline options
-