Class RowEvaluator.Decoder<T>
java.lang.Object
uk.ac.starlink.table.formats.RowEvaluator.Decoder<T>
- Enclosing class:
RowEvaluator
Interface for an object that can turn a string into a cell content
object.
- Since:
- 21 Sep 2004
- Author:
- Mark Taylor (Starlink)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateColumnInfo(String name) Returns a new ColumnInfo suitable for the decoded values.abstract TDecodes a value.Returns the class to which this decoder decodes.getName()Returns the name of this decoder.abstract booleanIndicates whether this decoder is capable of decoding a given string.
-
Constructor Details
-
Decoder
-
-
Method Details
-
getDecodedClass
-
getName
-
createColumnInfo
Returns a new ColumnInfo suitable for the decoded values.- Parameters:
name- column name- Returns:
- new metadata object
-
decode
Decodes a value. Will complete without exception ifisValid(String)returns true for the presentedvalue; otherwise may throw an unchecked exception.- Parameters:
value- string to decode- Returns:
- typed object corresponding to
value
-
isValid
Indicates whether this decoder is capable of decoding a given string.- Parameters:
value- string to decode- Returns:
- true iff this decoder can make sense of the string
-