public abstract class WrappingInput<V> extends java.lang.Object implements Input<V>
Constructor and Description |
---|
WrappingInput(Input<V> nested) |
Modifier and Type | Method and Description |
---|---|
void |
addValidator(FieldValidator<V> val)
Add a
FieldValidator to this input |
V |
convert(java.lang.Object v)
Perform any supported type conversions to to generate a value of the
target type
|
java.lang.String |
getKey()
get the unique key for this selector
|
Input<V> |
getNested() |
java.lang.String |
getPrettyString(V value)
Convert a value into a user friendly string.
|
java.lang.String |
getString(V value)
convert a value of the correct type for this input into a String.
|
V |
getValue()
get the current value of the Object created by this selector.
|
void |
removeValidator(FieldValidator<V> val)
Remove a
FieldValidator from this input |
void |
setKey(java.lang.String key)
Set the key used by this Selector
|
V |
setValue(V v)
set the value of this selector.
|
void |
validate()
Check the validity of the current state of the Object.
|
public java.lang.String getKey()
Input
public V getValue()
Input
public void setKey(java.lang.String key)
Input
public V setValue(V v) throws TypeError
Input
public V convert(java.lang.Object v) throws TypeError
Input
public java.lang.String getString(V value)
Input
getString
in interface Input<V>
ParseInput
public java.lang.String getPrettyString(V value)
Input
getPrettyString
in interface Input<V>
ListInput
public void validate() throws FieldException
Input
validate
in interface Input<V>
FieldException
public void addValidator(FieldValidator<V> val)
Input
FieldValidator
to this inputaddValidator
in interface Input<V>
public void removeValidator(FieldValidator<V> val)
Input
FieldValidator
from this inputremoveValidator
in interface Input<V>