public class InputTableParameter extends AbstractInputTableParameter<StarTable>
Constructor and Description |
---|
InputTableParameter(String name)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
objectToString(Environment env,
StarTable table)
Takes a typed value of this parameter and formats it as a string
which may be used for presentation to the user.
|
StarTable |
stringToObject(Environment env,
String sval)
Returns the input table which has been selected by this parameter.
|
StarTable |
tableValue(Environment env) |
getFormatParameter, getLocationFormList, getStreamParameter, makeTable, makeTable, makeTables, setTableDescription
clearValue, getDescription, getName, getPosition, getPreferExplicit, getPrompt, getStringDefault, getUsage, getValueClass, isNullPermitted, objectValue, setDescription, setDescription, setName, setNullPermitted, setPosition, setPreferExplicit, setPrompt, setStringDefault, setUsage, setValue, setValueFromObject, setValueFromString, stringValue, toArray, toString
public InputTableParameter(String name)
name
- parameter namepublic StarTable stringToObject(Environment env, String sval) throws TaskException
stringToObject
in class Parameter<StarTable>
env
- execution environmentsval
- non-null, non-empty string valueTaskException
public String objectToString(Environment env, StarTable table)
Parameter
stringToObject
should be possible,
but that is not in general required/guaranteed.
The default implementation uses the value's toString method, but subclasses can override this for smarter behaviour.
objectToString
in class Parameter<StarTable>
env
- execution environmenttable
- typed parameter valuepublic StarTable tableValue(Environment env) throws TaskException
TaskException
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.