Package org.everit.json.schema
Class EnumSchema
- java.lang.Object
-
- org.everit.json.schema.Schema
-
- org.everit.json.schema.EnumSchema
-
public class EnumSchema extends Schema
Enum schema validator.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EnumSchema.Builder
Builder class forEnumSchema
.
-
Field Summary
-
Fields inherited from class org.everit.json.schema.Schema
schemaLocation
-
-
Constructor Summary
Constructors Constructor Description EnumSchema(EnumSchema.Builder builder)
-
Method Summary
Modifier and Type Method Description void
accept(org.everit.json.schema.Visitor visitor)
static EnumSchema.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)
Set<Object>
getPossibleValues()
List<Object>
getPossibleValuesAsList()
int
hashCode()
-
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
-
EnumSchema
public EnumSchema(EnumSchema.Builder builder)
-
-
Method Detail
-
builder
public static EnumSchema.Builder builder()
-
accept
public void accept(org.everit.json.schema.Visitor visitor)
-
-