![JAR search and dependency download from the Maven repository](/logo.png)
dev.harrel.jsonschema.EvaluationItem Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of json-schema Show documentation
Show all versions of json-schema Show documentation
Library for JSON schema validation
package dev.harrel.jsonschema;
abstract class EvaluationItem {
private final String evaluationPath;
private final String schemaLocation;
private final String instanceLocation;
private final String keyword;
EvaluationItem(String evaluationPath,
String schemaLocation,
String instanceLocation,
String keyword) {
this.evaluationPath = evaluationPath;
this.schemaLocation = schemaLocation;
this.instanceLocation = instanceLocation;
this.keyword = keyword;
}
/**
* Returns JSON pointer like path representing evaluation point in schema JSON.
*/
public String getEvaluationPath() {
return evaluationPath;
}
/**
* Returns absolute schema location which uniquely identifies given schema.
*/
public String getSchemaLocation() {
return schemaLocation;
}
/**
* Returns JSON pointer like path representing evaluation point in instance JSON.
*/
public String getInstanceLocation() {
return instanceLocation;
}
/**
* Returns keyword name associated with given evaluation point. Might be null.
*/
public String getKeyword() {
return keyword;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy