MessageTemplatesCommandSet class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addCommand(ICommand command)
→ void
-
Adds a
ICommand command
to this command set.
inherited
-
addCommands(List<ICommand> commands)
→ void
-
Adds multiple
ICommand commands
to this command set.
inherited
-
addCommandSet(CommandSet commandSet)
→ void
-
Adds all of the commands and events from specified
CommandSet command set
into this one.
inherited
-
addEvent(IEvent event)
→ void
-
Adds an
IEvent event
to this command set.
inherited
-
addEvents(List<IEvent> events)
→ void
-
Adds multiple
IEvent events
to this command set.
inherited
-
addInterceptor(ICommandInterceptor interceptor)
→ void
-
Adds a
ICommandInterceptor command interceptor
to this command set.
inherited
-
addListener(IEventListener listener)
→ void
-
Adds a
IEventListener listener
to receive notifications on fired events.
inherited
-
execute(String? correlationId, String commandName, Parameters args)
→ Future
-
Executes a
ICommand command
specificed by its name.
inherited
-
findCommand(String commandName)
→ ICommand?
-
Searches for a command by its name.
inherited
-
findEvent(String eventName)
→ IEvent?
-
Searches for an event by its name in this command set.
inherited
-
getCommands()
→ List<ICommand>
-
Gets all commands registered in this command set.
Returns a list of commands.
See
ICommand
inherited
-
getEvents()
→ List<IEvent>
-
Gets all events registred in this command set.
Returns a list of events.
See
IEvent
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
notify(String? correlationId, String eventName, Parameters args)
→ void
-
Fires event specified by its name and notifies all registered
IEventListener listeners
inherited
-
removeListener(IEventListener listener)
→ void
-
Removes previosly added
IEventListener listener
.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
-
validate(String commandName, Parameters args)
→ List<ValidationResult>
-
Validates
Parameters args
for command specified by its name using defined schema.
If validation schema is not defined than the methods returns no errors.
It returns validation error if the command is not found.
inherited