Class DeleteNodeCommand<T extends Node>

    • Field Detail

      • _property

        public String _property
      • _parentPath

        public NodePath _parentPath
      • _oldValue

        public com.fasterxml.jackson.databind.node.ObjectNode _oldValue
    • Constructor Detail

      • DeleteNodeCommand

        public DeleteNodeCommand()
      • DeleteNodeCommand

        public DeleteNodeCommand​(String property,
                                 Node from)
    • Method Detail

      • undo

        public void undo​(Document document)
        Description copied from interface: ICommand
        Called to undo the command (restore the document to a previous state).
        See Also:
        ICommand.undo(Document)
      • readNode

        protected abstract T readNode​(Document doc,
                                      com.fasterxml.jackson.databind.node.ObjectNode node)