|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.table.formats.RowEvaluator.Decoder
public abstract static class RowEvaluator.Decoder
Interface for an object that can turn a string into a cell content object.
Constructor Summary | |
---|---|
RowEvaluator.Decoder(java.lang.Class clazz)
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RowEvaluator.Decoder(java.lang.Class clazz)
clazz
- class of object to be returned by decode methodMethod Detail |
---|
public ColumnInfo createColumnInfo(java.lang.String name)
name
- column name
public 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 decode
value
public abstract boolean isValid(java.lang.String value)
value
- string to decode
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |