Class AbstractSchemaInhCommand
- java.lang.Object
-
- io.apicurio.datamodels.cmd.AbstractCommand
-
- io.apicurio.datamodels.cmd.commands.AbstractSchemaInhCommand
-
- All Implemented Interfaces:
ICommand
- Direct Known Subclasses:
DeleteAllChildSchemasCommand
public abstract class AbstractSchemaInhCommand extends AbstractCommand
- Author:
- eric.wittmann@gmail.com
-
-
Field Summary
Fields Modifier and Type Field Description static StringTYPE_ALL_OFstatic StringTYPE_ANY_OFstatic StringTYPE_NONEstatic StringTYPE_ONE_OF
-
Constructor Summary
Constructors Constructor Description AbstractSchemaInhCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcopySchemaJsTo(List<com.fasterxml.jackson.databind.node.ObjectNode> schemas, Schema targetSchema, String inheritanceType)Copies the given list of schemas to the appropriate property on the modelprotected SchemacreateSchema(Schema parentSchema, String inheritanceType)Creates a schema of a particular type (allOf, anyOf, etc).protected booleanhas$Ref(Node node)-
Methods inherited from class io.apicurio.datamodels.cmd.AbstractCommand
indexOf, isNullOrUndefined, type
-
-
-
-
Field Detail
-
TYPE_NONE
public static final String TYPE_NONE
- See Also:
- Constant Field Values
-
TYPE_ALL_OF
public static final String TYPE_ALL_OF
- See Also:
- Constant Field Values
-
TYPE_ONE_OF
public static final String TYPE_ONE_OF
- See Also:
- Constant Field Values
-
TYPE_ANY_OF
public static final String TYPE_ANY_OF
- See Also:
- Constant Field Values
-
-
Method Detail
-
createSchema
protected Schema createSchema(Schema parentSchema, String inheritanceType)
Creates a schema of a particular type (allOf, anyOf, etc).- Parameters:
parentSchema-inheritanceType-
-
copySchemaJsTo
protected void copySchemaJsTo(List<com.fasterxml.jackson.databind.node.ObjectNode> schemas, Schema targetSchema, String inheritanceType)
Copies the given list of schemas to the appropriate property on the model- Parameters:
schemas-targetSchema-inheritanceType-
-
has$Ref
protected boolean has$Ref(Node node)
-
-