Package net.sf.tweety.plugin.parameter
Class FileListCommandParameter
- java.lang.Object
 - 
- net.sf.tweety.plugin.parameter.CommandParameter
 - 
- net.sf.tweety.plugin.parameter.FileListCommandParameter
 
 
 
- 
- All Implemented Interfaces:
 java.lang.Cloneable
public class FileListCommandParameter extends CommandParameter
This parameter holds a file-list of possible arguments- Author:
 - Bastian Wolf
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description private java.io.File[]valuethe value each instantiated needs, has to be in selections 
- 
Constructor Summary
Constructors Constructor Description FileListCommandParameter(java.lang.String id, java.lang.String des)Creates a new file list command parameter 
- 
Method Summary
Modifier and Type Method Description java.lang.Objectclone()java.io.File[]getValue()returns the given instantiation argument value for this parameterCommandParameterinstantiate(java.lang.String filename)instantiates a new parameter iff the given value ist valid for this command parameter (for special case with one file);CommandParameterinstantiate(java.util.ArrayList<java.lang.String> a)booleanisValid(java.lang.String s)checks whether a cli input parameter argument is valid for the called command parametervoidsetValue(java.io.File[] value)sets the instantiated parameter argument value, value has to be one of the options contained in selections- 
Methods inherited from class net.sf.tweety.plugin.parameter.CommandParameter
getDescription, getIdentifier 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getValue
public java.io.File[] getValue()
returns the given instantiation argument value for this parameter- Returns:
 - the given instantiation argument value for this parameter
 
 
- 
setValue
public void setValue(java.io.File[] value)
sets the instantiated parameter argument value, value has to be one of the options contained in selections- Parameters:
 value- the value given as argument value
 
- 
isValid
public boolean isValid(java.lang.String s)
checks whether a cli input parameter argument is valid for the called command parameter- Specified by:
 isValidin classCommandParameter- Parameters:
 s- the given input string- Returns:
 - true if valid, false if not
 
 
- 
instantiate
public CommandParameter instantiate(java.lang.String filename)
instantiates a new parameter iff the given value ist valid for this command parameter (for special case with one file);- Specified by:
 instantiatein classCommandParameter- Parameters:
 filename- the given argument string- Returns:
 - The CommandParameter instance or null if the given string is not valid.
 
 
- 
instantiate
public CommandParameter instantiate(java.util.ArrayList<java.lang.String> a)
 
- 
clone
public java.lang.Object clone()
- Overrides:
 clonein classjava.lang.Object
 
 - 
 
 -