se.hiq.oss.json.schema.repo.JsonSchemaRegistrationImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of json-schema-discovery Show documentation
Show all versions of json-schema-discovery Show documentation
Auto-detected JSON schema classes and provide a repository for easy lookup
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