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

se.hiq.oss.json.schema.repo.JsonSchemaRegistrationImpl Maven / Gradle / Ivy

There is a newer version: 0.8
Show newest version
package se.hiq.oss.json.schema.repo;


import com.fasterxml.jackson.databind.JsonNode;
import com.github.fge.jsonschema.main.JsonSchema;
import se.hiq.oss.json.schema.validation.impl.JsonSchemaValidator;


public class JsonSchemaRegistrationImpl implements JsonSchemaRegistration {

    private final Class serDeClass;

    private final JsonSchema jsonSchema;

    private final JsonSchemaValidator stringValidator;

    private final JsonSchemaValidator nodeValidator;

    public JsonSchemaRegistrationImpl(final Class serDeClass,
                                      final JsonSchema jsonSchema,
                                      final JsonSchemaValidator stringValidator,
                                      final JsonSchemaValidator nodeValidator) {
        this.serDeClass = serDeClass;
        this.jsonSchema = jsonSchema;
        this.stringValidator = stringValidator;
        this.nodeValidator = nodeValidator;
    }

    @Override
    public Class getSerDeClass() {
        return serDeClass;
    }

    @Override
    public JsonSchema getJsonSchema() {
        return jsonSchema;
    }

    @Override
    public JsonSchemaValidator getStringValidator() {
        return stringValidator;
    }

    @Override
    public JsonSchemaValidator getNodeValidator() {
        return nodeValidator;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy