Class SimpleInventoryValidator


  • public class SimpleInventoryValidator
    extends Object
    Validates the contents of a SimpleInventory object against the OCFL v1.0 spec
    • Constructor Detail

      • SimpleInventoryValidator

        public SimpleInventoryValidator()
    • 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 validate
        inventoryPath - the path to the inventory
        ocflVersion - the OCFL version the inventory should adhere to, or null if the version does not matter
        equality - how the inventory version should relate to the expected version, or null if the version does not matter
        Returns:
        the validation results