Class JsonSchemaValidationWorkflowRunner.Builder<T extends com.google.protobuf.MessageOrBuilder>
java.lang.Object
org.phenopackets.phenopackettools.validator.jsonschema.JsonSchemaValidationWorkflowRunner.Builder<T>
- Type Parameters:
T- one of top-level elements of the Phenopacket schema.
- Enclosing class:
- JsonSchemaValidationWorkflowRunner<T extends com.google.protobuf.MessageOrBuilder>
public abstract static class JsonSchemaValidationWorkflowRunner.Builder<T extends com.google.protobuf.MessageOrBuilder>
extends Object
A builder for
JsonSchemaValidationWorkflowRunner.
Build the JsonSchemaValidationWorkflowRunner by providing JSON schema documents
either as Path or URLs, and PhenopacketValidators for performing semantic validation.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllJsonSchemaPaths(List<Path> paths) addAllJsonSchemaUrls(List<URL> urls) addAllSemanticValidators(List<PhenopacketValidator<T>> semanticValidators) addJsonSchema(URL url) addJsonSchema(Path path) addSemanticValidator(PhenopacketValidator<T> semanticValidator) abstract JsonSchemaValidationWorkflowRunner<T>build()
-
Field Details
-
jsonSchemaUrls
-
semanticValidators
protected final List<PhenopacketValidator<T extends com.google.protobuf.MessageOrBuilder>> semanticValidators
-
-
Constructor Details
-
Builder
protected Builder()
-
-
Method Details
-
addJsonSchema
public JsonSchemaValidationWorkflowRunner.Builder<T> addJsonSchema(Path path) throws MalformedURLException - Throws:
MalformedURLException
-
addJsonSchema
-
addAllJsonSchemaPaths
public JsonSchemaValidationWorkflowRunner.Builder<T> addAllJsonSchemaPaths(List<Path> paths) throws MalformedURLException - Throws:
MalformedURLException
-
addAllJsonSchemaUrls
-
addSemanticValidator
public JsonSchemaValidationWorkflowRunner.Builder<T> addSemanticValidator(PhenopacketValidator<T> semanticValidator) -
addAllSemanticValidators
public JsonSchemaValidationWorkflowRunner.Builder<T> addAllSemanticValidators(List<PhenopacketValidator<T>> semanticValidators) -
build
-