Package org.everit.json.schema
Class BooleanSchema
- java.lang.Object
-
- org.everit.json.schema.Schema
-
- org.everit.json.schema.BooleanSchema
-
public class BooleanSchema extends Schema
Boolean schema validator.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BooleanSchema.Builder
Builder class forBooleanSchema
.
-
Field Summary
Fields Modifier and Type Field Description static BooleanSchema
INSTANCE
-
Fields inherited from class org.everit.json.schema.Schema
schemaLocation
-
-
Constructor Summary
Constructors Constructor Description BooleanSchema(BooleanSchema.Builder builder)
-
Method Summary
Modifier and Type Method Description static BooleanSchema.Builder
builder()
protected boolean
canEqual(java.lang.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(java.lang.Object o)
-
Methods inherited from class org.everit.json.schema.Schema
definesProperty, describeTo, failure, failure, getDefaultValue, getDescription, getId, getLocation, getSchemaLocation, getTitle, getUnprocessedProperties, hasDefaultValue, hashCode, isNullable, isReadOnly, isWriteOnly, toString, validate
-
-
-
-
Field Detail
-
INSTANCE
public static final BooleanSchema INSTANCE
-
-
Constructor Detail
-
BooleanSchema
public BooleanSchema(BooleanSchema.Builder builder)
-
-
Method Detail
-
builder
public static BooleanSchema.Builder builder()
-
canEqual
protected boolean canEqual(java.lang.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
-
-