Class CoreV2Validator
java.lang.Object
de.christianmahnke.iiif.fliiifenleger.validation.CoreV2Validator
- All Implemented Interfaces:
Validator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()booleansupports(ImageInfo.IIIFVersion version) Whether this validator applies to the given IIIF Image API version.validate(tools.jackson.databind.JsonNode node, ImageInfo.IIIFVersion effectiveVersion) Validates one parsedinfo.jsondocument.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Validator
getAvailableOptions, setOptions
-
Constructor Details
-
CoreV2Validator
public CoreV2Validator()
-
-
Method Details
-
getName
-
getDescription
- Specified by:
getDescriptionin interfaceValidator- Returns:
- Short human-readable description of this validator (used by
info list-validators).
-
supports
Description copied from interface:ValidatorWhether this validator applies to the given IIIF Image API version. Validators returningfalseare skipped by the facade. -
validate
public ValidationResult validate(tools.jackson.databind.JsonNode node, ImageInfo.IIIFVersion effectiveVersion) Description copied from interface:ValidatorValidates one parsedinfo.jsondocument.- Specified by:
validatein interfaceValidator- Parameters:
node- The parsed document; nevernulland always a JSON object.effectiveVersion- The IIIF Image API version being validated against (explicit expectation or auto-detected).- Returns:
- This validator's slice of the result;
detectedVersionmay benull(the facade supplies its own detection). Nevernull.
-