|
|||||||||
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(Class clazz)
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RowEvaluator.Decoder(Class clazz)
clazz
- class of object to be returned by decode methodMethod Detail |
---|
public ColumnInfo createColumnInfo(String name)
name
- column name
public abstract Object decode(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(String value)
value
- string to decode
|
Copyright © 2004 CLRC: Central Laboratory of the Research Councils. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |