public abstract static class RowEvaluator.Decoder extends Object
Modifier and Type | Method and Description |
---|---|
ColumnInfo |
createColumnInfo(String name)
Returns a new ColumnInfo suitable for the decoded values.
|
abstract Object |
decode(String value)
Decodes a value.
|
abstract boolean |
isValid(String value)
Indicates whether this decoder is capable of decoding a
given string.
|
public Decoder(Class<?> clazz)
clazz
- class of object to be returned by decode methodpublic ColumnInfo createColumnInfo(String name)
name
- column namepublic abstract Object decode(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(String value)
value
- string to decodeCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.