public class MOAUtils extends Object
| Constructor and Description |
|---|
MOAUtils() |
| Modifier and Type | Method and Description |
|---|---|
static MOAObject |
fromCommandLine(ClassOption option,
String commandline)
Turns a commandline into an object (classname + optional options).
|
static MOAObject |
fromCommandLine(Class requiredType,
String commandline)
Turns a commandline into an object (classname + optional options).
|
static MOAObject |
fromOption(ClassOption option)
Creates a MOA object from the specified class option.
|
static String |
toCommandLine(MOAObject obj)
Returs the commandline for the given object.
|
public static MOAObject fromCommandLine(ClassOption option, String commandline)
option - the corresponding class optioncommandline - the commandline to turn into an objectpublic static MOAObject fromCommandLine(Class requiredType, String commandline)
requiredType - the required classcommandline - the commandline to turn into an objectpublic static MOAObject fromOption(ClassOption option)
option - the option to build the object frompublic static String toCommandLine(MOAObject obj)
obj - the object to generate the commandline forCopyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.