Class Validator

    • Constructor Detail

      • Validator

        public Validator()
    • Method Detail

      • validate

        public void validate​(ExtensibleObject object,
                             Template template,
                             History transaction)
                      throws ValidationException
        Validates an object instance taking the validation logic from a given template
        Parameters:
        object - the instance to validate
        template - the template that contains the validation logic
        transaction - the current transaction
        Throws:
        ValidationException - in case of invalid object, this exception contains all the errors descriptions