
org.everit.json.schema.FalseSchema Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.everit.json.schema Show documentation
Show all versions of org.everit.json.schema Show documentation
This is a fork of the implementation of the JSON Schema Core Draft v4 specification built with the org.json API which also supports internationalization
The newest version!
package org.everit.json.schema;
import org.everit.json.schema.internal.JSONPrinter;
/**
* @author erosb
*/
public class FalseSchema extends Schema {
public static class Builder extends Schema.Builder {
@Override public FalseSchema build() {
return new FalseSchema(this);
}
}
public static Builder builder() {
return new Builder();
}
public static final FalseSchema INSTANCE = FalseSchema.builder().build();
/**
* Constructor.
*
* @param builder
* the builder containing the optional title, description and id attributes of the schema
*/
public FalseSchema(Builder builder) {
super(builder);
}
@Override
void accept(Visitor visitor) {
visitor.visitFalseSchema(this);
}
@Override
public void describeTo(JSONPrinter writer) {
writer.value(false);
}
@Override
public String toString() {
return "false";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy