Package org.everit.json.schema
Class TrueSchema
- java.lang.Object
-
- org.everit.json.schema.Schema
-
- org.everit.json.schema.EmptySchema
-
- org.everit.json.schema.TrueSchema
-
public class TrueSchema extends EmptySchema
- Author:
- erosb
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTrueSchema.Builder
-
Field Summary
-
Fields inherited from class org.everit.json.schema.EmptySchema
INSTANCE
-
Fields inherited from class org.everit.json.schema.Schema
schemaLocation
-
-
Constructor Summary
Constructors Constructor Description TrueSchema(TrueSchema.Builder builder)
-
Method Summary
Modifier and Type Method Description static TrueSchema.Builderbuilder()voiddescribeTo(JSONPrinter writer)Describes the instance as a JSONObject towriter.booleanequals(Object o)StringtoString()-
Methods inherited from class org.everit.json.schema.EmptySchema
canEqual, hashCode
-
Methods inherited from class org.everit.json.schema.Schema
definesProperty, failure, failure, getDefaultValue, getDescription, getId, getLocation, getSchemaLocation, getTitle, getUnprocessedProperties, hasDefaultValue, isNullable, isReadOnly, isWriteOnly, validate
-
-
-
-
Constructor Detail
-
TrueSchema
public TrueSchema(TrueSchema.Builder builder)
-
-
Method Detail
-
builder
public static TrueSchema.Builder builder()
-
describeTo
public void describeTo(JSONPrinter writer)
Description copied from class:SchemaDescribes the instance as a JSONObject towriter.First it adds the
"title,"description"and"id"properties then callsSchema.describePropertiesTo(JSONPrinter), which will add the subclass-specific properties.It is used by
Schema.toString()to serialize the schema instance into its JSON representation.- Overrides:
describeToin classSchema- Parameters:
writer- it will receive the schema description
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classEmptySchema
-
-