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.
|
acceptaddInput, containsInput, getInput, getInputs, getPrettyString, getString, getSubKeys, getSubLabel, hasLineBreaks, hasSubLabels, isEmpty, removeInput, setKey, setLineBreaks, validateInneraddValidator, getKey, getString, removeValidator, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddValidator, getKey, removeValidator, validatepublic T getValue()
Inputpublic T setValue(T v) throws TypeError
Inputpublic T convert(java.lang.Object v) throws TypeError
Inputpublic void addInput(java.lang.String sub_key,
java.lang.String label,
Input<T> i)
addInput in class MultiInput<T,Input<T>>public boolean requireAll()
MultiInputrequireAll in class MultiInput<T,Input<T>>public java.util.Map<java.lang.String,java.lang.Object> getMap()
ParseMapInputpublic boolean parse(java.util.Map<java.lang.String,java.lang.Object> v)
throws ParseException
ParseMapInputParseException