public class ArraySchema extends ValueSchema
additionalItems, additionalProperties, allOf, anyOf, defaultValue, definitions, dependencies, description, enums, exclusiveMaximum, exclusiveMinimum, items, maximum, maxItems, maxLength, maxProperties, minimum, minItems, minLength, minProperties, multipleOf, not, oneOf, pattern, patternProperties, properties, required, schemaType, title, uniqueItems, unit| Constructor and Description |
|---|
ArraySchema(ValueSchema schema) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
areItemsUnique() |
boolean |
containsAdditionalItems() |
java.lang.Object |
getItems()
Items of this array MUST be objects, and each of these objects MUST be a valid JSON Schema.
|
java.util.List<java.lang.Object> |
getItemsList()
Items of this array MUST be objects, and each of these objects MUST be a valid JSON Schema.
|
java.lang.Integer |
getMaxItems()
If defined this integer MUST be greater than, or equal to, 0.
|
java.lang.Integer |
getMinItems()
If defined this integer MUST be greater than, or equal to, 0.
|
boolean |
validate(java.lang.Object value) |
asArray, asBoolean, asInteger, asNumber, asObject, asString, getAllOf, getAnyOf, getDefaultValue, getDescription, getEnums, getNot, getOneOf, getSchemaType, getTitle, getUnit, isArraySchema, isBooleanSchema, isIntegerSchema, isNumberSchema, isObjectSchema, isStringSchema, validateNullpublic ArraySchema(ValueSchema schema)
public java.lang.Object getItems()
public java.util.List<java.lang.Object> getItemsList()
public java.lang.Integer getMaxItems()
public java.lang.Integer getMinItems()
public boolean areItemsUnique()
public boolean containsAdditionalItems()
ValueSchema.itemspublic boolean validate(java.lang.Object value)
validate in interface SchemaValidatorvalidate in class ValueSchema