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 everit-json-schema Show documentation
Show all versions of everit-json-schema Show documentation
Implementation of the JSON Schema Core Draft v4 specification built with the org.json API
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();
}
/**
* 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 - 2024 Weber Informatics LLC | Privacy Policy