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, validateInnerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTagByItem, getText, isValidgetCount, getItemsgetItembyValueaddValidator, getKey, isEmpty, removeValidator, setKey, validatepublic java.lang.String getTagByValue(java.lang.String value)
ListInputgetTagByValue in interface ListInput<java.lang.String,O>public java.lang.String convert(java.lang.Object v)
throws TypeError
Inputpublic java.lang.String getPrettyString(java.lang.String value)
InputgetPrettyString in interface Input<java.lang.String>getPrettyString in class BaseInput<java.lang.String>ListInputpublic java.lang.String getString(java.lang.String value)
BaseInputgetString in interface Input<java.lang.String>getString in class BaseInput<java.lang.String>ParseInputpublic java.lang.String getValue()
Inputpublic java.lang.String setValue(java.lang.String v)
throws TypeError
Inputpublic O getItem()
ItemInputpublic void setItem(O item)
ItemInputpublic <R> R accept(InputVisitor<R> vis) throws java.lang.Exception