
public class FileListParameter extends ListParameter<FileListParameter,List<File>>
| Modifier and Type | Class and Description |
|---|---|
static class |
FileListParameter.FilesType
Available types of the files:
FileListParameter.FilesType.INPUT_FILES denotes input files,
FileListParameter.FilesType.OUTPUT_FILES denotes output files. |
| Modifier and Type | Field and Description |
|---|---|
private FileListParameter.FilesType |
filesType
Specifies the type of the files, i.e. if the files are input or output
files.
|
LIST_SEP, SPLIT, VECTOR_SEP, VECTOR_SPLITconstraints, defaultValue, givenValue, optionalParameter, optionid, shortDescription| Constructor and Description |
|---|
FileListParameter(OptionID optionID,
FileListParameter.FilesType filesType)
Constructs a file list parameter with the given optionID, and file type.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getSyntax()
Returns a string representation of the parameter's type.
|
String |
getValueAsString()
Get the value as string.
|
protected List<File> |
parseValue(Object obj)
Parse a given value into the destination type.
|
int |
size()
Size of the list.
|
protected boolean |
validate(List<File> obj)
Validate a value after parsing (e.g. do constrain checks!)
|
addConstraint, getDefaultValue, getDefaultValueAsString, getFullDescription, getGivenValue, getName, getOptionID, getShortDescription, getValue, getValuesDescription, hasDefaultValue, hasValuesDescription, isDefined, isOptional, isValid, setDefaultValue, setOptional, setShortDescription, setValue, setValueInternal, tookDefaultValue, tryDefaultValue, useDefaultValueprivate FileListParameter.FilesType filesType
public FileListParameter(OptionID optionID, FileListParameter.FilesType filesType)
optionID - the unique id of this file list parameterfilesType - the file type of this file list parameterpublic String getValueAsString()
ParameternullgetValueAsString in interface Parameter<List<File>>getValueAsString in class AbstractParameter<FileListParameter,List<File>>protected List<File> parseValue(Object obj) throws ParameterException
AbstractParameterparseValue in class AbstractParameter<FileListParameter,List<File>>obj - Object to parse (may be a string representation!)ParameterException - when the object cannot be parsed.protected boolean validate(List<File> obj) throws ParameterException
AbstractParametervalidate in class AbstractParameter<FileListParameter,List<File>>obj - Object to validateParameterException - when the object is not valid.public int size()
ListParametersize in class ListParameter<FileListParameter,List<File>>public String getSyntax()
getSyntax in interface Parameter<List<File>>getSyntax in class AbstractParameter<FileListParameter,List<File>>Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.