Package adams.core.option.parsing
Class PrefixFieldParsing
- java.lang.Object
-
- adams.core.option.parsing.AbstractParsing
-
- adams.core.option.parsing.PrefixFieldParsing
-
public class PrefixFieldParsing extends AbstractParsing
For parsing PrefixField options.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Constructor Summary
Constructors Constructor Description PrefixFieldParsing()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringtoString(AbstractOption option, Object object)Returns the field as string.static ObjectvalueOf(AbstractOption option, String str)Returns a Field generated from the string.
-
-
-
Method Detail
-
toString
public static String toString(AbstractOption option, Object object)
Returns the field as string.- Parameters:
option- the current optionobject- the Field object to convert- Returns:
- the generated string
-
valueOf
public static Object valueOf(AbstractOption option, String str)
Returns a Field generated from the string. All "\t" strings are turned automatically into tab characters.- Parameters:
option- the current optionstr- the string to convert to a field- Returns:
- the generated Field object
-
-