Class ObjectValidator


  • public class ObjectValidator
    extends Object
    • Constructor Detail

      • ObjectValidator

        public ObjectValidator​(InventoryMapper inventoryMapper)
    • Method Detail

      • validateObject

        public void validateObject​(Path objectRoot,
                                   Inventory inventory)
        Validates the structure, files, and inventories of an object and all of its versions. This is VERY SLOW.
        Parameters:
        objectRoot - path to the object root
        inventory - deserialized root inventory
      • validateVersion

        public void validateVersion​(Path versionRoot,
                                    Inventory inventory)
        Validates the contents of a version directory.
        Parameters:
        versionRoot - path to the version directory
        inventory - deserialized version inventory