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

    Modifier and Type
    Method
    Description
    boolean
    Checks if the provided argument is valid for the command.
    void
    Executes the command.
    Base method for show command description.
    Base method for show command name
  • Method Details

    • execute

      void execute() throws BuildObjectException
      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

      boolean checkArgument(Object argument)
      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