Package commandManagers
Interface CommandInterface
- All Known Implementing Classes:
Add,AddIfMin,Clear,Command,ExecuteScript,Exit,Help,History,Info,PrintDescending,PrintFieldDescendingMetersAboveSeaLevel,RemoveById,RemoveGreater,Save,Show,SumOfMetersAboveSeaLevel,UpdateId
public interface CommandInterface
An interface that represents a command object that can be executed and checked for valid arguments.
-
Method Summary
-
Method Details
-
execute
Executes the command.- Throws:
BuildObjectException
-
getName
String getName()Base method for show command name- Returns:
- command name
-
getDescr
String getDescr()Base method for show command description.- Returns:
- command description
-
checkArgument
Checks if the provided argument is valid for the command.- Parameters:
argument- the argument to check for validity- Returns:
- true if the argument is valid, false otherwise
-