
org.everit.json.schema.ValidatorBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of everit-json-schema-jdk6 Show documentation
Show all versions of everit-json-schema-jdk6 Show documentation
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