Package weka.core
Class ListOptions
- java.lang.Object
-
- weka.core.ListOptions
-
- All Implemented Interfaces:
OptionHandler,RevisionHandler
public class ListOptions extends java.lang.Object implements OptionHandler, RevisionHandler
Lists the options of an OptionHandler- Version:
- $Revision: 1.2 $
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Constructor Summary
Constructors Constructor Description ListOptions()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringgenerate()generates the options string.java.lang.StringgenerateHelp()generates a string to print as help on the consolejava.lang.StringgetClassname()returns the current classnamejava.lang.String[]getOptions()Gets the current settings of this object.java.lang.StringgetRevision()Returns the revision string.java.util.EnumerationlistOptions()Returns an enumeration describing the available options.static voidmain(java.lang.String[] options)runs the javadoc producer with the given commandline optionsvoidsetClassname(java.lang.String value)sets the classname of the class to generate the Javadoc forvoidsetOptions(java.lang.String[] options)Parses a given list of options.
-
-
-
Method Detail
-
listOptions
public java.util.Enumeration listOptions()
Returns an enumeration describing the available options.- Specified by:
listOptionsin interfaceOptionHandler- Returns:
- an enumeration of all the available options.
-
setOptions
public void setOptions(java.lang.String[] options) throws java.lang.ExceptionParses a given list of options.- Specified by:
setOptionsin interfaceOptionHandler- Parameters:
options- the list of options as an array of strings- Throws:
java.lang.Exception- if an option is not supported
-
getOptions
public java.lang.String[] getOptions()
Gets the current settings of this object.- Specified by:
getOptionsin interfaceOptionHandler- Returns:
- an array of strings suitable for passing to setOptions
-
setClassname
public void setClassname(java.lang.String value)
sets the classname of the class to generate the Javadoc for- Parameters:
value- the new classname
-
getClassname
public java.lang.String getClassname()
returns the current classname- Returns:
- the current classname
-
generateHelp
public java.lang.String generateHelp()
generates a string to print as help on the console- Returns:
- the generated help
-
generate
public java.lang.String generate() throws java.lang.Exceptiongenerates the options string.- Returns:
- the options string
- Throws:
java.lang.Exception- in case the generation fails
-
getRevision
public java.lang.String getRevision()
Returns the revision string.- Specified by:
getRevisionin interfaceRevisionHandler- Returns:
- the revision
-
main
public static void main(java.lang.String[] options)
runs the javadoc producer with the given commandline options- Parameters:
options- the commandline options
-
-