Class ContainerTypeSchema
- java.lang.Object
-
- com.fasterxml.jackson.module.jsonSchema.JsonSchema
-
- com.fasterxml.jackson.module.jsonSchema.types.SimpleTypeSchema
-
- com.fasterxml.jackson.module.jsonSchema.types.ContainerTypeSchema
-
- Direct Known Subclasses:
ArraySchema,ObjectSchema
public abstract class ContainerTypeSchema extends SimpleTypeSchema
This class encapsulates the functionality of container typeJsonSchemaArray and Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Set<java.lang.String>enumsThis provides an enumeration of all possible values that are valid for the instance property.protected java.util.Set<java.lang.Object>oneOfThis provides an enumeration of all possible values that are valid for the instance property.-
Fields inherited from class com.fasterxml.jackson.module.jsonSchema.types.SimpleTypeSchema
defaultdefault, links, pathStart, title
-
-
Constructor Summary
Constructors Constructor Description ContainerTypeSchema()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected boolean_equals(ContainerTypeSchema that)ContainerTypeSchemaasContainerSchema()Deprecated.Since 2.7ContainerTypeSchemaasContainerTypeSchema()Attempt to return this JsonSchema as aContainerTypeSchemabooleanequals(java.lang.Object obj)java.util.Set<java.lang.String>getEnums()java.util.Set<java.lang.Object>getOneOf()booleanisContainerTypeSchema()determine if this JsonSchema is anContainerTypeSchema.voidsetEnums(java.util.Set<java.lang.String> enums)voidsetOneOf(java.util.Set<java.lang.Object> oneOf)-
Methods inherited from class com.fasterxml.jackson.module.jsonSchema.types.SimpleTypeSchema
_equals, asSimpleTypeSchema, getDefault, getLinks, getPathStart, getTitle, isSimpleTypeSchema, setDefault, setLinks, setPathStart, setTitle
-
Methods inherited from class com.fasterxml.jackson.module.jsonSchema.JsonSchema
_equals, arraysEqual, asAnySchema, asArraySchema, asBooleanSchema, asIntegerSchema, asNullSchema, asNumberSchema, asObjectSchema, asStringSchema, asUnionTypeSchema, asValueSchemaSchema, asValueTypeSchema, enrichWithBeanProperty, equals, get$ref, get$schema, getDescription, getDisallow, getExtends, getId, getReadonly, getRequired, getType, isAnySchema, isArraySchema, isBooleanSchema, isIntegerSchema, isNullSchema, isNumberSchema, isObjectSchema, isStringSchema, isUnionTypeSchema, isValueTypeSchema, minimalForFormat, set$ref, set$schema, setDescription, setDisallow, setExtends, setId, setReadonly, setRequired
-
-
-
-
Field Detail
-
enums
protected java.util.Set<java.lang.String> enums
This provides an enumeration of all possible values that are valid for the instance property. This MUST be an array, and each item in the array represents a possible value for the instance value. If this attribute is defined, the instance value MUST be one of the values in the array in order for the schema to be valid. Comparison of enum values uses the same algorithm as defined in "uniqueItems" (Section 5.15).
-
oneOf
protected java.util.Set<java.lang.Object> oneOf
This provides an enumeration of all possible values that are valid for the instance property. This MUST be an array, and each item in the array represents a possible value for the instance value. If this attribute is defined, the instance value MUST be one of the values in the array in order for the schema to be valid. Comparison of enum values uses the same algorithm as defined in "uniqueItems" (Section 5.15).
-
-
Method Detail
-
asContainerSchema
@Deprecated public ContainerTypeSchema asContainerSchema()
Deprecated.Since 2.7- Overrides:
asContainerSchemain classJsonSchema
-
asContainerTypeSchema
public ContainerTypeSchema asContainerTypeSchema()
Description copied from class:JsonSchemaAttempt to return this JsonSchema as aContainerTypeSchema- Overrides:
asContainerTypeSchemain classJsonSchema- Returns:
- this as an ContainerTypeSchema if possible, or null otherwise
- Since:
- 2.7
-
getEnums
public java.util.Set<java.lang.String> getEnums()
-
isContainerTypeSchema
public boolean isContainerTypeSchema()
Description copied from class:JsonSchemadetermine if this JsonSchema is anContainerTypeSchema.- Overrides:
isContainerTypeSchemain classJsonSchema- Returns:
- true if this JsonSchema is an ContainerTypeSchema, false otherwise
-
setEnums
public void setEnums(java.util.Set<java.lang.String> enums)
-
getOneOf
public java.util.Set<java.lang.Object> getOneOf()
-
setOneOf
public void setOneOf(java.util.Set<java.lang.Object> oneOf)
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classSimpleTypeSchema
-
_equals
protected boolean _equals(ContainerTypeSchema that)
-
-