T
- type of inputpublic interface ParseInput<T> extends Input<T>
Modifier and Type | Method and Description |
---|---|
default java.lang.String |
getString()
get a String representation of the value in a form that is compatible
with the way the input is parsed.
|
default void |
parse(java.lang.String v)
Set the value of the input by parsing a textual representation of the
input.
|
T |
parseValue(java.lang.String v)
Parse a String into the correct type for this input.
|
accept, addValidator, convert, getKey, getPrettyString, getString, getValue, isEmpty, removeValidator, setKey, setValue, validate
T parseValue(java.lang.String v) throws ParseException
Input.getString(Object)
method.v
- ParseException
default java.lang.String getString()
default void parse(java.lang.String v) throws ParseException
parseValue(String)
and Input.setValue(Object)
but it can be overridden for example if the natural parse mechanism generates an Item
in an item input.v
- ParseException