public class FileListCommandParameter extends CommandParameter
| Constructor and Description |
|---|
FileListCommandParameter(String id,
String des) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
File[] |
getValue()
returns the given instantiation argument value for this parameter
|
CommandParameter |
instantiate(ArrayList<String> a) |
CommandParameter |
instantiate(String filename)
instantiates a new parameter iff the given value ist valid for this
command parameter (for special case with one file);
|
boolean |
isValid(String s)
checks whether a cli input parameter argument is valid for the called
command parameter
|
void |
setValue(File[] value)
sets the instantiated parameter argument value, value has to be one of
the options contained in selections
|
getDescription, getIdentifierpublic File[] getValue()
public void setValue(File[] value)
value - the value given as argument valuepublic boolean isValid(String s)
isValid in class CommandParameters - the given input stringpublic CommandParameter instantiate(String filename)
instantiate in class CommandParameterfilename - the given argument stringpublic CommandParameter instantiate(ArrayList<String> a)
Copyright © 2018. All rights reserved.