Class DeleteAllParametersCommand
- java.lang.Object
-
- io.apicurio.datamodels.cmd.AbstractCommand
-
- io.apicurio.datamodels.cmd.commands.DeleteAllParametersCommand
-
- All Implemented Interfaces:
ICommand
public class DeleteAllParametersCommand extends AbstractCommand
A command used to delete all parameters from: PathItem, Operation- Author:
- eric.wittmann@gmail.com
-
-
Field Summary
Fields Modifier and Type Field Description List<com.fasterxml.jackson.databind.node.ObjectNode>_oldParamsString_paramTypeNodePath_parentPath
-
Constructor Summary
Constructors Constructor Description DeleteAllParametersCommand()DeleteAllParametersCommand(OpenApiParametersParent parent, String type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(Document document)Called to execute the command against the given document.voidundo(Document document)Called to undo the command (restore the document to a previous state).-
Methods inherited from class io.apicurio.datamodels.cmd.AbstractCommand
indexOf, isNullOrUndefined, type
-
-
-
-
Constructor Detail
-
DeleteAllParametersCommand
public DeleteAllParametersCommand()
-
DeleteAllParametersCommand
public DeleteAllParametersCommand(OpenApiParametersParent parent, String type)
-
-
Method Detail
-
execute
public void execute(Document document)
Description copied from interface:ICommandCalled to execute the command against the given document.- See Also:
ICommand.execute(Document)
-
undo
public void undo(Document document)
Description copied from interface:ICommandCalled to undo the command (restore the document to a previous state).- See Also:
ICommand.undo(Document)
-
-