Class ColumnConverter
java.lang.Object
uk.ac.starlink.topcat.ColumnConverter
- Direct Known Subclasses:
AngleColumnConverter
Performs unit conversions on data values based on a given ValueInfo.
- Since:
- 17 Sep 2004
- Author:
- Mark Taylor (Starlink)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract StringconvertExpression(String inExpr) Returns a JEL expression for the converted value of a supplied unconverted input expression.abstract ObjectconvertValue(Object value) Converts a value from its raw value to the value required for a particular purpose.static ColumnConverter[]getConverters(uk.ac.starlink.table.ValueInfo info) Returns a set of converters appropriate for a given ValueInfo.abstract StringtoString()Provides a user-understandable description of what this converter does.
-
Constructor Details
-
ColumnConverter
public ColumnConverter()
-
-
Method Details
-
convertValue
-
convertExpression
-
toString
-
getConverters
Returns a set of converters appropriate for a given ValueInfo. If only one converter is returned, it's a unit converter (equivalent to a no-op).- Parameters:
info- object describing the data which is required- Returns:
- a set of alternative converters which could be used to modify the values in a given column
-