Package adams.core.option.parsing
Class LicenseParsing
- java.lang.Object
-
- adams.core.option.parsing.AbstractParsing
-
- adams.core.option.parsing.LicenseParsing
-
public class LicenseParsing extends AbstractParsing
For parsing license options.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Constructor Summary
Constructors Constructor Description LicenseParsing()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
toString(AbstractOption option, Object object)
Returns the enum as string.static adams.core.License
valueOf(AbstractOption option, String str)
Returns an enum generated from the string.
-
-
-
Method Detail
-
toString
public static String toString(AbstractOption option, Object object)
Returns the enum as string.- Parameters:
option
- the current optionobject
- the enum object to convert- Returns:
- the generated string
-
valueOf
public static adams.core.License valueOf(AbstractOption option, String str)
Returns an enum generated from the string.- Parameters:
option
- the current optionstr
- the string to convert to an enum- Returns:
- the generated enum or null in case of error
-
-