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 class
ArraySchema.Builder
Builder 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.Builder
builder()
protected boolean
canEqual(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.boolean
equals(Object o)
Schema
getAllItemSchema()
Schema
getContainedItemSchema()
List<Schema>
getItemSchemas()
Integer
getMaxItems()
Integer
getMinItems()
Schema
getSchemaOfAdditionalItems()
int
hashCode()
boolean
needsUniqueItems()
boolean
permitsAdditionalItems()
boolean
requiresArray()
-
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:Schema
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.http://www.artima.com/lejava/articles/equality.html
-
-