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.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.
|
Constructor and Description |
---|
ArraySchema() |
Modifier and Type | Method and Description |
---|---|
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) |
asContainerSchema, getEnums, isContainerTypeSchema, setEnums
asSimpleTypeSchema, getDefault, getLinks, getPathStart, getTitle, isSimpleTypeSchema, setDefault, setLinks, setPathStart, setTitle
asAnySchema, asBooleanSchema, asIntegerSchema, asNullSchema, asNumberSchema, asObjectSchema, asStringSchema, asUnionTypeSchema, asValueSchemaSchema, enrichWithBeanProperty, equals, get$ref, get$schema, getDescription, getDisallow, getExtends, getId, getRequired, isAnySchema, isBooleanSchema, isIntegerSchema, isNullSchema, isNumberSchema, isObjectSchema, isStringSchema, isUnionTypeSchema, isValueTypeSchema, minimalForFormat, set$ref, set$schema, setDescription, setDisallow, setExtends, setId, setRequired
public ArraySchema asArraySchema()
JsonSchema
ArraySchema
asArraySchema
in class JsonSchema
public boolean equals(Object obj)
equals
in class ContainerTypeSchema
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)
Copyright © 2014-2015 FasterXML. All Rights Reserved.