|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.fasterxml.jackson.databind.jsonSchema.types.JsonSchema
com.fasterxml.jackson.databind.jsonSchema.types.SimpleTypeSchema
com.fasterxml.jackson.databind.jsonSchema.types.ContainerTypeSchema
com.fasterxml.jackson.databind.jsonSchema.types.ArraySchema
public class ArraySchema
| Nested Class Summary | |
|---|---|
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. |
| Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.jsonSchema.types.JsonSchema |
|---|
JsonSchema.JsonSchemaIdResolver |
| Constructor Summary | |
|---|---|
ArraySchema()
|
|
| Method Summary | |
|---|---|
ArraySchema |
asArraySchema()
Attempt to return this JsonSchema as an ArraySchema |
boolean |
equals(Object obj)
|
ArraySchema.AdditionalItems |
getAdditionalItems()
additionalItems |
ArraySchema.Items |
getItems()
items |
Integer |
getMaxItems()
maxItems |
Integer |
getMinItems()
minItems |
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatTypes |
getType()
|
Boolean |
getUniqueItems()
uniqueItems |
boolean |
isArraySchema()
determine if this JsonSchema is an ArraySchema. |
void |
setAdditionalItems(ArraySchema.AdditionalItems additionalItems)
additionalItems |
void |
setItems(ArraySchema.Items items)
items |
void |
setItemsSchema(JsonSchema jsonSchema)
Convenience method to set the json schema for the items
field |
void |
setMaxItems(Integer maxItems)
maxItems |
void |
setMinItems(Integer minItems)
minItems |
void |
setUniqueItems(Boolean uniqueItems)
uniqueItems |
| Methods inherited from class com.fasterxml.jackson.databind.jsonSchema.types.ContainerTypeSchema |
|---|
asContainerSchema, getEnums, isContainerTypeSchema, setEnums |
| Methods inherited from class com.fasterxml.jackson.databind.jsonSchema.types.SimpleTypeSchema |
|---|
asSimpleTypeSchema, getDefault, getDescription, getTitle, isSimpleTypeSchema, setDefault, setDescription, setTitle |
| Methods inherited from class com.fasterxml.jackson.databind.jsonSchema.types.JsonSchema |
|---|
asAnySchema, asBooleanSchema, asIntegerSchema, asNullSchema, asNumberSchema, asObjectSchema, asStringSchema, asUnionTypeSchema, asValueSchemaSchema, get$ref, get$schema, getDisallow, getExtends, getId, getRequired, isAnySchema, isBooleanSchema, isIntegerSchema, isNullSchema, isNumberSchema, isObjectSchema, isStringSchema, isUnionTypeSchema, isValueTypeSchema, minimalForFormat, set$ref, set$schema, setDisallow, setExtends, setId, setRequired |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArraySchema()
| Method Detail |
|---|
public ArraySchema asArraySchema()
JsonSchemaArraySchema
asArraySchema in class JsonSchemapublic boolean equals(Object obj)
equals in class ContainerTypeSchemapublic ArraySchema.AdditionalItems getAdditionalItems()
additionalItems
public ArraySchema.Items getItems()
items
public Integer getMaxItems()
maxItems
public Integer getMinItems()
minItems
public com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatTypes getType()
getType in class JsonSchemapublic Boolean getUniqueItems()
uniqueItems
public boolean isArraySchema()
JsonSchemaArraySchema.
isArraySchema in class JsonSchemapublic void setAdditionalItems(ArraySchema.AdditionalItems additionalItems)
additionalItems
additionalItems - the additionalItems to setpublic void setItems(ArraySchema.Items items)
items
items - the items to setpublic void setItemsSchema(JsonSchema jsonSchema)
items
field
jsonSchema - public void setMaxItems(Integer maxItems)
maxItems
maxItems - the maxItems to setpublic void setMinItems(Integer minItems)
minItems
minItems - the minItems to setpublic void setUniqueItems(Boolean uniqueItems)
uniqueItems
uniqueItems - the uniqueItems to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||