Class DeleteAllExamplesCommand

  • All Implemented Interfaces:
    ICommand

    public class DeleteAllExamplesCommand
    extends AbstractCommand
    A command used to delete a single mediaType from an operation.
    Author:
    eric.wittmann@gmail.com
    • Field Detail

      • _parentPath

        public NodePath _parentPath
      • _oldExamples

        public Map<String,​com.fasterxml.jackson.databind.node.ObjectNode> _oldExamples
    • Constructor Detail

      • DeleteAllExamplesCommand

        public DeleteAllExamplesCommand()
    • Method Detail

      • execute

        public void execute​(Document document)
        Description copied from interface: ICommand
        Called to execute the command against the given document.
      • 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)