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, setValueaddValidator, convert, getKey, getString, removeValidator, validate, validateInnerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddValidator, convert, getKey, getValue, isEmpty, removeValidator, setKey, setValue, validatepublic ConstantInput(java.lang.String label)
public ConstantInput(java.lang.String label,
V value)
public java.lang.String getLabel()
UnmodifiableInputgetLabel in interface UnmodifiableInputpublic java.lang.String getString(V val)
BaseInputpublic java.lang.String getPrettyString(V val)
InputgetPrettyString in interface Input<V>getPrettyString in class BaseInput<V>ListInputpublic void setLabel(java.lang.String s)
public <R> R accept(InputVisitor<R> vis) throws java.lang.Exception