Interface ICommand

All Superinterfaces:
IExecutable
All Known Implementing Classes:
Command, InterceptedCommand

public interface ICommand extends IExecutable
An interface for Commands, which are part of the Command design pattern. Each command wraps a method or function and allows to call them in uniform and safe manner.
See Also:
  • Method Details

    • getName

      String getName()
      Gets the command name.
      Returns:
      the command name.
    • validate

      List<ValidationResult> validate(Parameters args)
      Validates command arguments before execution using defined schema.
      Parameters:
      args - the parameters (arguments) to validate.
      Returns:
      an array of ValidationResults.
      See Also: