public class TrueSchema extends EmptySchema
Modifier and Type | Class and Description |
---|---|
static class |
TrueSchema.Builder |
INSTANCE
schemaLocation
Constructor and Description |
---|
TrueSchema(TrueSchema.Builder builder) |
Modifier and Type | Method and Description |
---|---|
static TrueSchema.Builder |
builder() |
void |
describeTo(JSONPrinter writer)
Describes the instance as a JSONObject to
writer . |
boolean |
equals(Object o) |
String |
toString() |
canEqual, hashCode
definesProperty, failure, failure, getDefaultValue, getDescription, getId, getLocation, getSchemaLocation, getTitle, getUnprocessedProperties, hasDefaultValue, isNullable, isReadOnly, isWriteOnly, validate
public TrueSchema(TrueSchema.Builder builder)
public static TrueSchema.Builder builder()
public void describeTo(JSONPrinter writer)
Schema
writer
.
First it adds the "title
, "description"
and "id"
properties then calls
Schema.describePropertiesTo(JSONPrinter)
, which will add the subclass-specific properties.
It is used by Schema.toString()
to serialize the schema instance into its JSON representation.
describeTo
in class Schema
writer
- it will receive the schema descriptionpublic boolean equals(Object o)
equals
in class EmptySchema
Copyright © 2019 Everit Kft.. All rights reserved.