Package uk.ac.starlink.ttools.task
Class InputFormatParameter
java.lang.Object
uk.ac.starlink.task.Parameter<String>
uk.ac.starlink.task.StringParameter
uk.ac.starlink.ttools.task.InputFormatParameter
- All Implemented Interfaces:
ExtraParameter
public class InputFormatParameter
extends uk.ac.starlink.task.StringParameter
implements ExtraParameter
Parameter for selecting input table format.
- Since:
- 15 Aug 2005
- Author:
- Mark Taylor
-
Field Summary
Fields inherited from class uk.ac.starlink.task.Parameter
BY_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns an extended usage message.getUsage()final voidsetTableDescription(String inDescrip, AbstractInputTableParameter<?> tableParam) Sets the wording used to refer to the input table in parameter descriptions.stringToObject(uk.ac.starlink.task.Environment env, String stringval) Methods inherited from class uk.ac.starlink.task.Parameter
clearValue, getDescription, getName, getPosition, getPreferExplicit, getPrompt, getStringDefault, getValueClass, isNullPermitted, objectToString, objectValue, setDescription, setDescription, setName, setNullPermitted, setPosition, setPreferExplicit, setPrompt, setStringDefault, setUsage, setValue, setValueFromObject, setValueFromString, stringValue, toArray, toString
-
Constructor Details
-
InputFormatParameter
-
-
Method Details
-
setTableDescription
Sets the wording used to refer to the input table in parameter descriptions. If not set, the wording "the input table" is used.- Parameters:
inDescrip- text to replace "the input table"tableParam- if supplied, gives the table parameter on behalf of which this format parameter is operating; may be null
-
getUsage
- Overrides:
getUsagein classuk.ac.starlink.task.Parameter<String>
-
getExtraUsage
Description copied from interface:ExtraParameterReturns an extended usage message. This should not repeat the content of the normal usage message. It should be preformatted, that is it should contain newlines to keep the line length down to less than 80 characters.- Specified by:
getExtraUsagein interfaceExtraParameter- Parameters:
env- execution envrionment- Returns:
- extended usage message
-
stringToObject
public String stringToObject(uk.ac.starlink.task.Environment env, String stringval) throws uk.ac.starlink.task.TaskException - Overrides:
stringToObjectin classuk.ac.starlink.task.StringParameter- Throws:
uk.ac.starlink.task.TaskException
-