public class FileListCommandParameter extends CommandParameter
| Modifier and Type | Field and Description |
|---|---|
private java.io.File[] |
value
the value each instantiated needs, has to be in selections
|
| Constructor and Description |
|---|
FileListCommandParameter(java.lang.String id,
java.lang.String des) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
java.io.File[] |
getValue()
returns the given instantiation argument value for this parameter
|
CommandParameter |
instantiate(java.util.ArrayList<java.lang.String> a) |
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);
|
boolean |
isValid(java.lang.String s)
checks whether a cli input parameter argument is valid for the called
command parameter
|
void |
setValue(java.io.File[] value)
sets the instantiated parameter argument value, value has to be one of
the options contained in selections
|
getDescription, getIdentifierprivate java.io.File[] value
public FileListCommandParameter(java.lang.String id,
java.lang.String des)
id - des - public java.io.File[] getValue()
public void setValue(java.io.File[] value)
value - the value given as argument valuepublic boolean isValid(java.lang.String s)
isValid in class CommandParameters - the given input stringpublic CommandParameter instantiate(java.lang.String filename)
instantiate in class CommandParameterfilename - the given argument stringpublic CommandParameter instantiate(java.util.ArrayList<java.lang.String> a)
public java.lang.Object clone()
clone in class java.lang.Object