O
- type of itempublic abstract class CodeListInput<O> extends BaseInput<java.lang.String> implements ListInput<java.lang.String,O>, NameInput<O>
validators
Constructor and Description |
---|
CodeListInput() |
Modifier and Type | Method and Description |
---|---|
<R> R |
accept(InputVisitor<R> vis) |
java.lang.String |
convert(java.lang.Object v)
Perform any supported type conversions to to generate a value of the
target type
|
O |
getItem()
get the domain Object associated with the current value
|
java.lang.String |
getPrettyString(java.lang.String value)
Convert a value into a user friendly string.
|
java.lang.String |
getString(java.lang.String value)
get a String representation of an Object that is compatible with the way
the input is parsed
|
java.lang.String |
getTagByValue(java.lang.String value)
get the tag string from the actual value of the input
|
java.lang.String |
getValue()
get the current value of the Object created by this selector.
|
void |
setItem(O item)
Set the value of the input using an item
|
java.lang.String |
setValue(java.lang.String v)
set the value of this selector.
|
addValidator, getKey, getString, removeValidator, setKey, validate, validateInner
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTagByItem, getText, isValid
getCount, getItems
getItembyValue
addValidator, getKey, isEmpty, removeValidator, setKey, validate
public java.lang.String getTagByValue(java.lang.String value)
ListInput
getTagByValue
in interface ListInput<java.lang.String,O>
public java.lang.String convert(java.lang.Object v) throws TypeError
Input
public java.lang.String getPrettyString(java.lang.String value)
Input
getPrettyString
in interface Input<java.lang.String>
getPrettyString
in class BaseInput<java.lang.String>
ListInput
public java.lang.String getString(java.lang.String value)
BaseInput
getString
in interface Input<java.lang.String>
getString
in class BaseInput<java.lang.String>
ParseInput
public java.lang.String getValue()
Input
public java.lang.String setValue(java.lang.String v) throws TypeError
Input
public O getItem()
ItemInput
public void setItem(O item)
ItemInput
public <R> R accept(InputVisitor<R> vis) throws java.lang.Exception