Class ObjectValidator
java.lang.Object
org.fcrepo.storage.ocfl.validation.ObjectValidator
Validates that OCFL objects are correctly formatted to be used by Fedora 6
- Author:
- pwinckles
-
Constructor Summary
ConstructorsConstructorDescriptionObjectValidator(io.ocfl.api.MutableOcflRepository ocflRepo, com.fasterxml.jackson.databind.ObjectReader headerReader) Creates a new object validator -
Method Summary
-
Constructor Details
-
ObjectValidator
public ObjectValidator(io.ocfl.api.MutableOcflRepository ocflRepo, com.fasterxml.jackson.databind.ObjectReader headerReader) Creates a new object validator- Parameters:
ocflRepo- the ocfl repositoryheaderReader- the resourece header deserializer
-
-
Method Details
-
validate
Validates that the specified OCFL object is a valid Fedora 6 object- Parameters:
ocflObjectId- the ID of the OCFL object to validatecheckFixity- true if file fixity should be validated in addition to the metadata validation- Throws:
ValidationException- when the object fails validation
-