|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.option.AbstractCommandLineHandler
adams.core.option.MOACommandLineHandler
public class MOACommandLineHandler
Handles objects of classes that implement the weka.core.OptionHandler interface.
OptionHandler,
Serialized Form| Field Summary |
|---|
| Fields inherited from class adams.core.option.AbstractCommandLineHandler |
|---|
FILENAME, KEY_HANDLERS, m_Cache, m_HandlerClasses, m_Handlers |
| Constructor Summary | |
|---|---|
MOACommandLineHandler()
|
|
| Method Summary | |
|---|---|
Object |
fromArray(String[] args)
Generates an object from the commandline options. |
Object |
fromCommandLine(String cmd)
Generates an object from the specified commandline. |
String[] |
getOptions(Object obj)
Returns the commandline options (without classname) of the specified object. |
boolean |
handles(Class cls)
Checks whether the given class can be processed. |
String |
joinOptions(String[] args)
Turns the option array back into a commandline. |
boolean |
setOptions(Object obj,
String[] args)
Sets the options of the specified object. |
String[] |
splitOptions(String cmdline)
Splits the commandline into an array. |
String[] |
toArray(Object obj)
Generates an options array from the specified object. |
String |
toCommandLine(Object obj)
Generates a commandline from the specified object. |
String |
toShortCommandLine(Object obj)
Generates a commandline from the specified object. |
| Methods inherited from class adams.core.option.AbstractCommandLineHandler |
|---|
getHandler, getHandler, getHandlers, handles, initHandlers |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MOACommandLineHandler()
| Method Detail |
|---|
public Object fromCommandLine(String cmd)
fromCommandLine in class AbstractCommandLineHandlercmd - the commandline to create the object from
public Object fromArray(String[] args)
fromArray in class AbstractCommandLineHandlerargs - the commandline options to create the object from
public String toCommandLine(Object obj)
toCommandLine in class AbstractCommandLineHandlerobj - the object to create the commandline for
public String toShortCommandLine(Object obj)
toShortCommandLine in class AbstractCommandLineHandlerobj - the object to create the commandline for
public String[] toArray(Object obj)
toArray in class AbstractCommandLineHandlerobj - the object to create the array for
public String[] getOptions(Object obj)
getOptions in class AbstractCommandLineHandlerobj - the object to get the options from
public boolean setOptions(Object obj,
String[] args)
setOptions in class AbstractCommandLineHandlerobj - the object to set the options forargs - the options
public String[] splitOptions(String cmdline)
splitOptions in class AbstractCommandLineHandlercmdline - the commandline to split
public String joinOptions(String[] args)
joinOptions in class AbstractCommandLineHandlerargs - the options to turn into a commandline
public boolean handles(Class cls)
handles in class AbstractCommandLineHandlercls - the class to inspect
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||