public abstract static class RowEvaluator.Decoder
extends java.lang.Object
| Constructor and Description |
|---|
Decoder(java.lang.Class<?> clazz)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ColumnInfo |
createColumnInfo(java.lang.String name)
Returns a new ColumnInfo suitable for the decoded values.
|
abstract java.lang.Object |
decode(java.lang.String value)
Decodes a value.
|
abstract boolean |
isValid(java.lang.String value)
Indicates whether this decoder is capable of decoding a
given string.
|
public Decoder(java.lang.Class<?> clazz)
clazz - class of object to be returned by decode methodpublic ColumnInfo createColumnInfo(java.lang.String name)
name - column namepublic abstract java.lang.Object decode(java.lang.String value)
isValid(java.lang.String) returns true
for the presented value; otherwise may throw an
unchecked exception.value - string to decodevaluepublic abstract boolean isValid(java.lang.String value)
value - string to decode