Class DeleteAllChildSchemasCommand

  • All Implemented Interfaces:
    ICommand

    public class DeleteAllChildSchemasCommand
    extends AbstractSchemaInhCommand
    A command used to delete all child schemas from a schema.
    Author:
    eric.wittmann@gmail.com
    • Field Detail

      • _schemaPath

        public NodePath _schemaPath
      • _childSchemaType

        public String _childSchemaType
      • _oldSchemas

        public List<com.fasterxml.jackson.databind.node.ObjectNode> _oldSchemas
    • Constructor Detail

      • DeleteAllChildSchemasCommand

        public DeleteAllChildSchemasCommand()
      • DeleteAllChildSchemasCommand

        public DeleteAllChildSchemasCommand​(Schema parent,
                                            String type)
    • 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).