Package commandManager.commands
Class AddCommand
java.lang.Object
commandManager.commands.AddCommand
- All Implemented Interfaces:
PreProcessingCommandInterface
,ArgumentConsumer<Route>
,AuthorizableCommand
,BaseCommand
public class AddCommand
extends Object
implements BaseCommand, ArgumentConsumer<Route>, AuthorizableCommand
Adds new element to collection.
- Since:
- 1.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Base method for command executing.getArgs()
Base method for show command argumentsgetDescr()
Base method for show command description.getName()
Base method for show command nameBase method for get command Outputvoid
setCallerID
(long id) void
-
Constructor Details
-
AddCommand
public AddCommand()
-
-
Method Details
-
setObj
- Specified by:
setObj
in interfaceArgumentConsumer<Route>
-
getName
Description copied from interface:BaseCommand
Base method for show command name- Specified by:
getName
in interfaceBaseCommand
- Returns:
- command name
-
getDescr
Description copied from interface:BaseCommand
Base method for show command description.- Specified by:
getDescr
in interfaceBaseCommand
- Returns:
- command description
-
getArgs
Description copied from interface:BaseCommand
Base method for show command arguments- Specified by:
getArgs
in interfaceBaseCommand
- Returns:
- command arguments pattern
-
execute
Description copied from interface:BaseCommand
Base method for command executing.- Specified by:
execute
in interfaceBaseCommand
- Parameters:
args
- full array of entered line.
-
getResponse
Description copied from interface:BaseCommand
Base method for get command Output- Specified by:
getResponse
in interfaceBaseCommand
- Returns:
- Full command output
-
setCallerID
public void setCallerID(long id) - Specified by:
setCallerID
in interfaceAuthorizableCommand
-