Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.utilities.optionhandling
Class FileListParameter

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.logging.AbstractLoggable
      extended by de.lmu.ifi.dbs.elki.utilities.optionhandling.Option<T>
          extended by de.lmu.ifi.dbs.elki.utilities.optionhandling.Parameter<List<T>,List<T>>
              extended by de.lmu.ifi.dbs.elki.utilities.optionhandling.ListParameter<File>
                  extended by de.lmu.ifi.dbs.elki.utilities.optionhandling.FileListParameter
All Implemented Interfaces:
Loggable

public class FileListParameter
extends ListParameter<File>

Parameter class for a parameter specifying a list of files.

Author:
Steffi Wanka

Nested Class Summary
static class FileListParameter.FilesType
          Available types of the files: FileListParameter.FilesType.INPUT_FILES denotes input files, FileListParameter.FilesType.OUTPUT_FILES denotes output files.
 
Field Summary
private  FileListParameter.FilesType filesType
          Specifies the type of the files, i.e. if the files are input or output files.
 
Fields inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.ListParameter
SPLIT, VECTOR_SPLIT
 
Fields inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.Parameter
constraints, defaultValue, optionalParameter
 
Fields inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.Option
name, shortDescription, value
 
Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable
debug
 
Constructor Summary
FileListParameter(String name, String description, FileListParameter.FilesType filesType)
          Deprecated.  
 
Method Summary
protected  String getParameterType()
          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.ListParameter
getListSize, toString
 
Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.Parameter
addConstraint, addConstraintList, getDefaultValue, getDescription, getValue, hasDefaultValue, isOptional, isSet, reset, setDefaultValue, setDefaultValueToValue, setOptional, tookDefaultValue
 
Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.Option
getName, getShortDescription, setShortDescription
 
Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable
debugFine, debugFiner, debugFinest, exception, message, progress, progress, progress, verbose, verbose, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

filesType

private FileListParameter.FilesType filesType
Specifies the type of the files, i.e. if the files are input or output files.

Constructor Detail

FileListParameter

@Deprecated
public FileListParameter(String name,
                                    String description,
                                    FileListParameter.FilesType filesType)
Deprecated. 

Constructs a file list parameter with the given name, description, and file type

Parameters:
name - the parameter name
description - the parameter description
filesType - the file type of this file list parameter
Method Detail

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.
See Also:
Option.setValue(String)

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.
See Also:
Option.isValid(java.lang.String)

getParameterType

protected String getParameterType()
Returns a string representation of the parameter's type.

Specified by:
getParameterType in class Parameter<List<File>,List<File>>
Returns:
"<file_1,...,file_n>"
See Also:
Parameter.getParameterType()

Release 0.1 (2008-07-10_1838)