Package org.everit.json.schema
Class EnumSchema
java.lang.Object
org.everit.json.schema.Schema
org.everit.json.schema.EnumSchema
Enum schema validator.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.everit.json.schema.Schema
schemaLocation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(org.everit.json.schema.Visitor visitor) static EnumSchema.Builderbuilder()protected booleanSince 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.booleaninthashCode()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 Details
-
EnumSchema
-
-
Method Details
-
builder
-
getPossibleValues
-
getPossibleValuesAsList
-
equals
-
hashCode
public int hashCode() -
accept
public void accept(org.everit.json.schema.Visitor visitor) -
canEqual
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
-