Interface ICommand
- All Superinterfaces:
IExecutable
- All Known Implementing Classes:
Command
,InterceptedCommand
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.
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
Gets the command name.validate
(Parameters args) Validates command arguments before execution using defined schema.Methods inherited from interface org.pipservices3.commons.run.IExecutable
execute
-
Method Details
-
getName
String getName()Gets the command name.- Returns:
- the command name.
-
validate
Validates command arguments before execution using defined schema.- Parameters:
args
- the parameters (arguments) to validate.- Returns:
- an array of ValidationResults.
- See Also:
-