Package io.apicurio.datamodels.cmd
Interface ICommand
-
- All Known Implementing Classes:
AbstractCommand,AbstractReplaceNodeCommand,AbstractSchemaInhCommand,AddChannelItemCommand,AddExampleCommand,AddPathItemCommand,AddResponseDefinitionCommand,AddSchemaDefinitionCommand,AddSecurityRequirementCommand,AggregateCommand,ChangeContactCommand,ChangeDescriptionCommand,ChangeLicenseCommand,ChangePropertyCommand,ChangeTitleCommand,ChangeVersionCommand,DeleteAllChildSchemasCommand,DeleteAllExamplesCommand,DeleteAllExtensionsCommand,DeleteAllHeadersCommand,DeleteAllOperationsCommand,DeleteAllParametersCommand,DeleteAllPropertiesCommand,DeleteAllResponsesCommand,DeleteAllSecurityRequirementsCommand,DeleteAllSecuritySchemesCommand,DeleteAllServersCommand,DeleteAllTagsCommand,DeleteContactCommand,DeleteExtensionCommand,DeleteLicenseCommand,DeleteMediaTypeCommand,DeleteNodeCommand,ReplaceOperationCommand,ReplacePathItemCommand,ReplaceResponseDefinitionCommand,ReplaceSchemaDefinitionCommand,ReplaceSecurityRequirementCommand,SetPropertyCommand
public interface ICommandAll editor commands must implement this interface.- Author:
- eric.wittmann@gmail.com
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidexecute(Document document)Called to execute the command against the given document.Stringtype()Returns the type of the command (i.e. the command's class name).voidundo(Document document)Called to undo the command (restore the document to a previous state).
-
-
-
Method Detail
-
execute
void execute(Document document)
Called to execute the command against the given document.- Parameters:
document-
-
undo
void undo(Document document)
Called to undo the command (restore the document to a previous state).- Parameters:
document-
-
type
String type()
Returns the type of the command (i.e. the command's class name).
-
-