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 classBooleanSchema.BuilderBuilder class forBooleanSchema.
-
Field Summary
Fields Modifier and Type Field Description static BooleanSchemaINSTANCE-
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.Builderbuilder()protected booleancanEqual(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.booleanequals(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: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
-
-