Package uk.ac.starlink.ttools.task
Class InputFormatParameter
- java.lang.Object
-
- uk.ac.starlink.task.Parameter<java.lang.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
-
-
Constructor Summary
Constructors Constructor Description InputFormatParameter(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetExtraUsage(TableEnvironment env)Returns an extended usage message.java.lang.StringgetUsage()voidsetTableDescription(java.lang.String inDescrip, AbstractInputTableParameter<?> tableParam)Sets the wording used to refer to the input table in parameter descriptions.java.lang.StringstringToObject(uk.ac.starlink.task.Environment env, java.lang.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
-
-
-
-
Method Detail
-
setTableDescription
public final void setTableDescription(java.lang.String inDescrip, AbstractInputTableParameter<?> tableParam)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
public java.lang.String getUsage()
- Overrides:
getUsagein classuk.ac.starlink.task.Parameter<java.lang.String>
-
getExtraUsage
public java.lang.String getExtraUsage(TableEnvironment env)
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 java.lang.String stringToObject(uk.ac.starlink.task.Environment env, java.lang.String stringval) throws uk.ac.starlink.task.TaskException- Overrides:
stringToObjectin classuk.ac.starlink.task.StringParameter- Throws:
uk.ac.starlink.task.TaskException
-
-