T
- type of inputI
- class of sub-inputspublic class AlternateInput<T> extends ParseMultiInput<T,Input<T>>
validators
Constructor and Description |
---|
AlternateInput() |
Modifier and Type | Method and Description |
---|---|
void |
addInput(java.lang.String sub_key,
java.lang.String label,
Input<T> i) |
T |
convert(java.lang.Object v)
Perform any supported type conversions to to generate a value of the
target type
|
java.util.Map<java.lang.String,java.lang.Object> |
getMap()
get a map of String representation of the values in the input that is compatible
with the way the input parses the map
|
T |
getValue()
get the current value of the Object created by this selector.
|
boolean |
parse(java.util.Map<java.lang.String,java.lang.Object> v)
Set the value of the input by parsing a textual representation of the
sub inputs.
|
boolean |
requireAll()
Are all inputs required
|
T |
setValue(T v)
set the value of this selector.
|
accept
addInput, containsInput, getInput, getInputs, getPrettyString, getString, getSubKeys, getSubLabel, hasLineBreaks, hasSubLabels, isEmpty, removeInput, setKey, setLineBreaks, validateInner
addValidator, getKey, getString, removeValidator, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addValidator, getKey, removeValidator, validate
public T getValue()
Input
public T setValue(T v) throws TypeError
Input
public T convert(java.lang.Object v) throws TypeError
Input
public void addInput(java.lang.String sub_key, java.lang.String label, Input<T> i)
addInput
in class MultiInput<T,Input<T>>
public boolean requireAll()
MultiInput
requireAll
in class MultiInput<T,Input<T>>
public java.util.Map<java.lang.String,java.lang.Object> getMap()
ParseMapInput
public boolean parse(java.util.Map<java.lang.String,java.lang.Object> v) throws ParseException
ParseMapInput
ParseException