Package io.ocfl.core.validation
Class Validator
java.lang.Object
io.ocfl.core.validation.Validator
Validates an object directory against the OCFL 1.0 and 1.1 spec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvalidateInventory
(String inventoryPath) Validates that an inventory is internally valid.static ValidationResults
validateInventory
(Path inventoryPath) Validates that the specified inventory file is internally validvalidateObject
(String objectRootPath, boolean contentFixityCheck) Validates the specified directory against the OCFL 1.0 and 1.1 spec.static ValidationResults
validateObject
(Path objectRoot, boolean checkContentFixity) Validates that object at the specified location on disk
-
Constructor Details
-
Validator
-
-
Method Details
-
validateObject
Validates that object at the specified location on disk- Parameters:
objectRoot
- the path to the object root on diskcheckContentFixity
- true if the content file digests should be validated- Returns:
- the validation results
-
validateInventory
Validates that the specified inventory file is internally valid- Parameters:
inventoryPath
- the path to the inventory file- Returns:
- the validation results
-
validateObject
Validates the specified directory against the OCFL 1.0 and 1.1 spec.- Parameters:
objectRootPath
- the path to the object to validatecontentFixityCheck
- true if the content file digests should be validated- Returns:
- the validation results
-
validateInventory
Validates that an inventory is internally valid.- Parameters:
inventoryPath
- the path to the inventory to validate- Returns:
- the validation results
-