Class DeleteAllChildSchemasCommand
- java.lang.Object
-
- io.apicurio.datamodels.cmd.AbstractCommand
-
- io.apicurio.datamodels.cmd.commands.AbstractSchemaInhCommand
-
- io.apicurio.datamodels.cmd.commands.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 Summary
Fields Modifier and Type Field Description String_childSchemaTypeList<com.fasterxml.jackson.databind.node.ObjectNode>_oldSchemasNodePath_schemaPath-
Fields inherited from class io.apicurio.datamodels.cmd.commands.AbstractSchemaInhCommand
TYPE_ALL_OF, TYPE_ANY_OF, TYPE_NONE, TYPE_ONE_OF
-
-
Constructor Summary
Constructors Constructor Description DeleteAllChildSchemasCommand()DeleteAllChildSchemasCommand(Schema 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.commands.AbstractSchemaInhCommand
copySchemaJsTo, createSchema, has$Ref
-
Methods inherited from class io.apicurio.datamodels.cmd.AbstractCommand
indexOf, isNullOrUndefined, type
-
-