public class ClassificationFactory.NameItemInput extends ParseAbstractInput<java.lang.Integer> implements DataObjectItemParseInput<T>
DataObjectItemInput
that uses the ParseFactory.findFromString(String)
method to locate
Note this is not constrained by the select filter so can be used to locate retired objects.validators
Constructor and Description |
---|
NameItemInput() |
Modifier and Type | Method and Description |
---|---|
T |
getItembyValue(java.lang.Integer val)
get the domain object from the Input value if defined
|
void |
parse(java.lang.String v)
Set the value of the input by parsing a textual representation of the
input.
|
java.lang.Integer |
parseValue(java.lang.String v)
Parse a String into the correct type for this input.
|
void |
setItem(T item)
Set the value of the input using an item
|
accept, getBoxWidth, getMaxResultLength, getSingle, setBoxWidth, setMaxResultLength, setSingle
getValue, setKey, setValue
addValidator, convert, getKey, getPrettyString, getString, getString, removeValidator, validate, validateInner
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accept, addValidator, convert, getKey, getPrettyString, getString, getValue, isEmpty, removeValidator, setKey, setValue, validate
getString
public void setItem(T item)
ItemInput
setItem
in interface ItemInput<java.lang.Integer,T extends Classification>
public void parse(java.lang.String v) throws ParseException
ParseInput
ParseInput.parseValue(String)
and Input.setValue(Object)
but it can be overridden for example if the natural parse mechanism generates an Item
in an item input.parse
in interface ParseInput<java.lang.Integer>
ParseException
public java.lang.Integer parseValue(java.lang.String v) throws ParseException
ParseInput
Input.getString(Object)
method.parseValue
in interface ParseInput<java.lang.Integer>
ParseException
public T getItembyValue(java.lang.Integer val)
ItemInput
getItembyValue
in interface ItemInput<java.lang.Integer,T extends Classification>
val
- input Value