Package command.manager.commands
Class UpdateCommand
java.lang.Object
command.manager.commands.UpdateCommand
- All Implemented Interfaces:
ArgumentConsumer<Route>,AuthorizableCommand,BaseCommand,LocalizableCommand,PreProcessingCommandInterface
public class UpdateCommand
extends Object
implements BaseCommand, ArgumentConsumer<Route>, AuthorizableCommand, LocalizableCommand
Updates element by its ID.
- Since:
- 1.0
- Author:
- Zerumi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidBase 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 OutputvoidsetCallerID(long id) voidvoid
-
Constructor Details
-
UpdateCommand
public UpdateCommand()
-
-
Method Details
-
getName
Description copied from interface:BaseCommandBase method for show command name- Specified by:
getNamein interfaceBaseCommand- Returns:
- command name
-
getDescr
Description copied from interface:BaseCommandBase method for show command description.- Specified by:
getDescrin interfaceBaseCommand- Returns:
- command description
-
getArgs
Description copied from interface:BaseCommandBase method for show command arguments- Specified by:
getArgsin interfaceBaseCommand- Returns:
- command arguments pattern
-
execute
Description copied from interface:BaseCommandBase method for command executing.- Specified by:
executein interfaceBaseCommand- Parameters:
args- full array of entered line.
-
getResponse
Description copied from interface:BaseCommandBase method for get command Output- Specified by:
getResponsein interfaceBaseCommand- Returns:
- Full command output
-
setObj
- Specified by:
setObjin interfaceArgumentConsumer<Route>
-
setCallerID
public void setCallerID(long id) - Specified by:
setCallerIDin interfaceAuthorizableCommand
-
setLocale
- Specified by:
setLocalein interfaceLocalizableCommand
-