public abstract static class RowEvaluator.Decoder<T> extends Object
Constructor and Description |
---|
Decoder(Class<T> clazz,
String name)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
ColumnInfo |
createColumnInfo(String name)
Returns a new ColumnInfo suitable for the decoded values.
|
abstract T |
decode(String value)
Decodes a value.
|
Class<T> |
getDecodedClass()
Returns the class to which this decoder decodes.
|
String |
getName()
Returns the name of this decoder.
|
abstract boolean |
isValid(String value)
Indicates whether this decoder is capable of decoding a
given string.
|
public Class<T> getDecodedClass()
public String getName()
public ColumnInfo createColumnInfo(String name)
name
- column namepublic abstract T 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.