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

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

Go to download

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

The newest version!
package org.everit.json.schema;

public class ValidatorBuilder {

    public static ValidatorBuilder builder() {
        return new ValidatorBuilder();
    }

    private boolean failEarly = false;

    private ReadWriteContext readWriteContext;

    public ValidatorBuilder failEarly() {
        this.failEarly = true;
        return this;
    }

    public ValidatorBuilder readWriteContext(ReadWriteContext readWriteContext) {
        this.readWriteContext = readWriteContext;
        return this;
    }

    public Validator build() {
        return new DefaultValidator(failEarly, readWriteContext);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy