Package org.pipservices4.rpc.commands
Interface ICommand
- All Superinterfaces:
org.pipservices4.components.exec.IExecutable
- All Known Implementing Classes:
Command,InterceptedCommand
public interface ICommand
extends org.pipservices4.components.exec.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 Summary
Methods inherited from interface org.pipservices4.components.exec.IExecutable
execute
-
Method Details
-
getName
String getName()Gets the command name.- Returns:
- the command name.
-
validate
List<org.pipservices4.data.validate.ValidationResult> validate(org.pipservices4.components.exec.Parameters args) Validates command arguments before execution using defined schema.- Parameters:
args- the parameters (arguments) to validate.- Returns:
- an array of ValidationResults.
- See Also:
-