public class ArraySchema extends ContainerTypeSchema
Modifier and Type | Class and Description |
---|---|
static class |
ArraySchema.AdditionalItems
This provides a definition for additional items in an array instance
when tuple definitions of the items is provided.
|
static class |
ArraySchema.ArrayItems
When this attribute value is an array of jsonSchemas and the instance
value is an array, each position in the instance array MUST conform
to the jsonSchema in the corresponding position for this array.
|
static class |
ArraySchema.Items
This attribute defines the allowed items in an instance array, and
MUST be a jsonSchema or an array of jsonSchemas.
|
static class |
ArraySchema.ItemsDeserializer |
static class |
ArraySchema.NoAdditionalItems
This can be false
to indicate additional items in the array are not allowed
|
static class |
ArraySchema.SchemaAdditionalItems
or it can
be a jsonSchema that defines the jsonSchema of the additional items.
|
static class |
ArraySchema.SingleItems
When this attribute value is a jsonSchema and the instance value is an
array, then all the items in the array MUST be valid according to the
jsonSchema.
|
Modifier and Type | Field and Description |
---|---|
protected ArraySchema.AdditionalItems |
additionalItems
|
protected ArraySchema.Items |
items
|
protected Integer |
maxItems
This attribute defines the maximum number of values in an array
|
protected Integer |
minItems
This attribute defines the minimum number of values in an array
|
protected Boolean |
uniqueItems
This attribute indicates that all items in an array instance MUST be
unique (contains no two identical values).
|
enums, oneOf
defaultdefault, links, pathStart, title
Constructor and Description |
---|
ArraySchema() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
_equals(ArraySchema that) |
ArraySchema |
asArraySchema()
Attempt to return this JsonSchema as an
ArraySchema |
boolean |
equals(Object obj) |
ArraySchema.AdditionalItems |
getAdditionalItems() |
ArraySchema.Items |
getItems() |
Integer |
getMaxItems() |
Integer |
getMinItems() |
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatTypes |
getType() |
Boolean |
getUniqueItems() |
boolean |
isArraySchema()
determine if this JsonSchema is an
ArraySchema . |
void |
setAdditionalItems(ArraySchema.AdditionalItems additionalItems) |
void |
setItems(ArraySchema.Items items) |
void |
setItemsSchema(JsonSchema jsonSchema) |
void |
setMaxItems(Integer maxItems) |
void |
setMinItems(Integer minItems) |
void |
setUniqueItems(Boolean uniqueItems) |
_equals, asContainerSchema, asContainerTypeSchema, getEnums, getOneOf, isContainerTypeSchema, setEnums, setOneOf
_equals, asSimpleTypeSchema, getDefault, getLinks, getPathStart, getTitle, isSimpleTypeSchema, setDefault, setLinks, setPathStart, setTitle
_equals, arraysEqual, asAnySchema, asBooleanSchema, asIntegerSchema, asNullSchema, asNumberSchema, asObjectSchema, asStringSchema, asUnionTypeSchema, asValueSchemaSchema, asValueTypeSchema, enrichWithBeanProperty, equals, get$ref, get$schema, getDescription, getDisallow, getExtends, getId, getReadonly, getRequired, isAnySchema, isBooleanSchema, isIntegerSchema, isNullSchema, isNumberSchema, isObjectSchema, isStringSchema, isUnionTypeSchema, isValueTypeSchema, minimalForFormat, set$ref, set$schema, setDescription, setDisallow, setExtends, setId, setReadonly, setRequired
protected ArraySchema.AdditionalItems additionalItems
protected ArraySchema.Items items
protected Integer maxItems
protected Integer minItems
protected Boolean uniqueItems
public ArraySchema asArraySchema()
JsonSchema
ArraySchema
asArraySchema
in class JsonSchema
public ArraySchema.AdditionalItems getAdditionalItems()
public ArraySchema.Items getItems()
public Integer getMaxItems()
public Integer getMinItems()
public com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatTypes getType()
getType
in class JsonSchema
public Boolean getUniqueItems()
public boolean isArraySchema()
JsonSchema
ArraySchema
.isArraySchema
in class JsonSchema
public void setAdditionalItems(ArraySchema.AdditionalItems additionalItems)
public void setItems(ArraySchema.Items items)
public void setItemsSchema(JsonSchema jsonSchema)
public void setMaxItems(Integer maxItems)
public void setMinItems(Integer minItems)
public void setUniqueItems(Boolean uniqueItems)
public boolean equals(Object obj)
equals
in class ContainerTypeSchema
protected boolean _equals(ArraySchema that)
Copyright © 2014–2017 FasterXML. All rights reserved.