Class PropertyVerificatorResult


  • public class PropertyVerificatorResult
    extends Object

    Result class of a property verification process

    Since:
    1.0
    Author:
    Christoph Praschl
    • Constructor Detail

      • PropertyVerificatorResult

        public PropertyVerificatorResult()
    • Method Detail

      • isEmpty

        public boolean isEmpty()
        Returns:
        If Result is empty or not
      • addField

        public void addField​(Field field,
                             ConstraintError constraintError,
                             Object obj)
        Add a constraintError violating field
        Parameters:
        field - field which violating the constraintError
        constraintError - the violated constraintError
        obj - the object containing the field which is violating the constraintError
      • getFieldsByConstraint

        public Map<Object,​List<Field>> getFieldsByConstraint​(ConstraintError error)
        Method which returns a map of objects with its fields which are violating a given ConstraintError
        Parameters:
        error - the violated error which is the basis for filtering
        Returns:
        a map of objects with fields violating the given ConstraintError