Class DeleteNodeCommand<T extends Node>
- java.lang.Object
-
- io.apicurio.datamodels.cmd.AbstractCommand
-
- io.apicurio.datamodels.cmd.commands.DeleteNodeCommand<T>
-
- All Implemented Interfaces:
ICommand
- Direct Known Subclasses:
DeleteAllResponsesCommand,DeleteContactCommand,DeleteLicenseCommand
public abstract class DeleteNodeCommand<T extends Node> extends AbstractCommand
A command used to delete a child node.- Author:
- eric.wittmann@gmail.com
-
-
Field Summary
Fields Modifier and Type Field Description com.fasterxml.jackson.databind.node.ObjectNode_oldValueNodePath_parentPathString_property
-
Constructor Summary
Constructors Constructor Description DeleteNodeCommand()DeleteNodeCommand(String property, Node from)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidexecute(Document document)Called to execute the command against the given document.protected abstract TreadNode(Document doc, com.fasterxml.jackson.databind.node.ObjectNode node)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
-
-
-
-
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)
-
-