All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.everit.json.schema.FalseSchema Maven / Gradle / Ivy

Go to download

Implementation of the JSON Schema Core Draft v4 specification built with the org.json API

There is a newer version: 1.14.4
Show 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();
    }

    /**
     * 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