V
- type of valuepublic class ConstantInput<V> extends AbstractInput<V> implements UnmodifiableInput, Input<V>
validators
Constructor and Description |
---|
ConstantInput(java.lang.String label) |
ConstantInput(java.lang.String label,
V value) |
Modifier and Type | Method and Description |
---|---|
<R> R |
accept(InputVisitor<R> vis) |
java.lang.String |
getLabel()
generate the text to be presented to the user
|
java.lang.String |
getPrettyString(V val)
Convert a value into a user friendly string.
|
java.lang.String |
getString(V val)
get a String representation of an Object that is compatible with the way
the input is parsed
|
void |
setLabel(java.lang.String s) |
getValue, setKey, setValue
addValidator, convert, getKey, getString, removeValidator, validate, validateInner
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addValidator, convert, getKey, getValue, isEmpty, removeValidator, setKey, setValue, validate
public ConstantInput(java.lang.String label)
public ConstantInput(java.lang.String label, V value)
public java.lang.String getLabel()
UnmodifiableInput
getLabel
in interface UnmodifiableInput
public java.lang.String getString(V val)
BaseInput
public java.lang.String getPrettyString(V val)
Input
getPrettyString
in interface Input<V>
getPrettyString
in class BaseInput<V>
ListInput
public void setLabel(java.lang.String s)
public <R> R accept(InputVisitor<R> vis) throws java.lang.Exception