public abstract static class RowEvaluator.Decoder
extends java.lang.Object
Constructor | Description |
---|---|
Decoder(java.lang.Class clazz) |
Constructor.
|
Modifier and Type | Method | 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 decodevalue
public abstract boolean isValid(java.lang.String value)
value
- string to decodeCopyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.