Package org.everit.json.schema
Class ArraySchema
- java.lang.Object
-
- org.everit.json.schema.Schema
-
- org.everit.json.schema.ArraySchema
-
public class ArraySchema extends Schema
Array schema validator.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classArraySchema.BuilderBuilder class forArraySchema.
-
Field Summary
-
Fields inherited from class org.everit.json.schema.Schema
schemaLocation
-
-
Constructor Summary
Constructors Constructor Description ArraySchema(ArraySchema.Builder builder)Constructor.
-
Method Summary
Modifier and Type Method Description static ArraySchema.Builderbuilder()protected booleancanEqual(Object other)Since we add state in subclasses, but want those subclasses to be non final, this allows us to have equals methods that satisfy the equals contract.booleanequals(Object o)SchemagetAllItemSchema()SchemagetContainedItemSchema()List<Schema>getItemSchemas()IntegergetMaxItems()IntegergetMinItems()SchemagetSchemaOfAdditionalItems()inthashCode()booleanneedsUniqueItems()booleanpermitsAdditionalItems()booleanrequiresArray()-
Methods inherited from class org.everit.json.schema.Schema
definesProperty, describeTo, failure, failure, getDefaultValue, getDescription, getId, getLocation, getSchemaLocation, getTitle, getUnprocessedProperties, hasDefaultValue, isNullable, isReadOnly, isWriteOnly, toString, validate
-
-
-
-
Constructor Detail
-
ArraySchema
public ArraySchema(ArraySchema.Builder builder)
Constructor.- Parameters:
builder- contains validation criteria.
-
-
Method Detail
-
builder
public static ArraySchema.Builder builder()
-
getAllItemSchema
public Schema getAllItemSchema()
-
getMaxItems
public Integer getMaxItems()
-
getMinItems
public Integer getMinItems()
-
getSchemaOfAdditionalItems
public Schema getSchemaOfAdditionalItems()
-
getContainedItemSchema
public Schema getContainedItemSchema()
-
needsUniqueItems
public boolean needsUniqueItems()
-
permitsAdditionalItems
public boolean permitsAdditionalItems()
-
requiresArray
public boolean requiresArray()
-
canEqual
protected boolean canEqual(Object other)
Description copied from class:SchemaSince we add state in subclasses, but want those subclasses to be non final, this allows us to have equals methods that satisfy the equals contract.http://www.artima.com/lejava/articles/equality.html
-
-