de.lmu.ifi.dbs.elki.utilities.optionhandling
Class FileListParameter
java.lang.Object
de.lmu.ifi.dbs.elki.utilities.optionhandling.Option<T>
de.lmu.ifi.dbs.elki.utilities.optionhandling.Parameter<List<T>,List<T>>
de.lmu.ifi.dbs.elki.utilities.optionhandling.ListParameter<File>
de.lmu.ifi.dbs.elki.utilities.optionhandling.FileListParameter
public class FileListParameter
- extends ListParameter<File>
Parameter class for a parameter specifying a list of files.
- Author:
- Steffi Wanka
Method Summary |
String |
getSyntax()
Returns a string representation of the parameter's type. |
boolean |
isValid(String value)
Checks if the given argument is valid for this option. |
void |
setValue(String value)
Sets the value of the option. |
Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.Parameter |
addConstraint, addConstraintList, getDefaultValue, getFullDescription, getValue, getValuesDescription, hasDefaultValue, hasValuesDescription, isOptional, isSet, reset, setDefaultValue, setDefaultValueToValue, setOptional, tookDefaultValue |
filesType
private FileListParameter.FilesType filesType
- Specifies the type of the files, i.e. if the files are input or output files.
FileListParameter
public FileListParameter(OptionID optionID,
FileListParameter.FilesType filesType)
- Constructs a file list parameter with the given optionID, and file type.
- Parameters:
optionID
- the unique id of this file list parameterfilesType
- the file type of this file list parameter
setValue
public void setValue(String value)
throws ParameterException
- Description copied from class:
Option
- Sets the value of the option.
- Specified by:
setValue
in class Option<List<File>>
- Parameters:
value
- the option's value to be set
- Throws:
ParameterException
- if the given value is not a valid value for this option.
isValid
public boolean isValid(String value)
throws ParameterException
- Description copied from class:
Option
- Checks if the given argument is valid for this option.
- Specified by:
isValid
in class Option<List<File>>
- Parameters:
value
- option value to be checked
- Returns:
- true, if the given value is valid for this option
- Throws:
ParameterException
- if the given value is not a valid value for this option.
getSyntax
public String getSyntax()
- Returns a string representation of the parameter's type.
- Specified by:
getSyntax
in class Option<List<File>>
- Returns:
- "<file_1,...,file_n>"