Class SimpleInventoryValidator
- java.lang.Object
-
- edu.wisc.library.ocfl.core.validation.SimpleInventoryValidator
-
public class SimpleInventoryValidator extends Object
Validates the contents of a SimpleInventory object against the OCFL v1.0 spec
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSimpleInventoryValidator.VersionEquality
-
Constructor Summary
Constructors Constructor Description SimpleInventoryValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValidationResultsvalidateInventory(SimpleInventory inventory, String inventoryPath, OcflVersion ocflVersion, SimpleInventoryValidator.VersionEquality equality)Validates the specified inventory and returns an object contain any issues that were found.
-
-
-
Method Detail
-
validateInventory
public ValidationResults validateInventory(SimpleInventory inventory, String inventoryPath, OcflVersion ocflVersion, SimpleInventoryValidator.VersionEquality equality)
Validates the specified inventory and returns an object contain any issues that were found.- Parameters:
inventory- the inventory to validateinventoryPath- the path to the inventoryocflVersion- the OCFL version the inventory should adhere to, or null if the version does not matterequality- how the inventory version should relate to the expected version, or null if the version does not matter- Returns:
- the validation results
-
-