Package org.everit.json.schema
Class EmptySchema
- java.lang.Object
-
- org.everit.json.schema.Schema
-
- org.everit.json.schema.EmptySchema
-
- Direct Known Subclasses:
TrueSchema
public class EmptySchema extends Schema
A schema not specifying any restrictions, ie. accepting any values.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEmptySchema.BuilderBuilder class forEmptySchema.
-
Field Summary
Fields Modifier and Type Field Description static EmptySchemaINSTANCE-
Fields inherited from class org.everit.json.schema.Schema
schemaLocation
-
-
Constructor Summary
Constructors Constructor Description EmptySchema(EmptySchema.Builder builder)
-
Method Summary
Modifier and Type Method Description static EmptySchema.Builderbuilder()protected booleancanEqual(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(Object o)inthashCode()-
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
-
-
-
-
Field Detail
-
INSTANCE
public static final EmptySchema INSTANCE
-
-
Constructor Detail
-
EmptySchema
public EmptySchema(EmptySchema.Builder builder)
-
-
Method Detail
-
builder
public static EmptySchema.Builder builder()
-
canEqual
protected boolean canEqual(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
-
-