Class CommandParameter
java.lang.Object
org.tweetyproject.plugin.parameter.CommandParameter
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
FileListCommandParameter
,IntegerCommandParameter
,SelectionCommandParameter
,StringListCommandParameter
-
Constructor Summary
ConstructorsConstructorDescriptionCommandParameter
(String id, String des) non-empty constructor (member variables cannot be changed after construction) -
Method Summary
Modifier and TypeMethodDescriptionreturns the description for this parameterreturns this parameters name (the identifier)abstract CommandParameter
instantiate the command with the given argument string if validabstract boolean
Checks, if the given String is a valid argument for this command parameter
-
Constructor Details
-
CommandParameter
-
-
Method Details
-
getIdentifier
returns this parameters name (the identifier)- Returns:
- this parameters name (the identifier)
-
getDescription
returns the description for this parameter- Returns:
- the description for this parameter
-
isValid
Checks, if the given String is a valid argument for this command parameter- Parameters:
s
- the given input string- Returns:
- true if valid, false if not
-
instantiate
instantiate the command with the given argument string if valid- Parameters:
s
- the given argument string- Returns:
- The CommandParameter instance or null if the given string is not valid.
-