Class ValidationResult

java.lang.Object
com.nomagic.reportwizard.tools.validation.ValidationResult

@OpenApiAll public class ValidationResult extends Object
Contains data for model validation result.
  • Constructor Details

    • ValidationResult

      public ValidationResult()
  • Method Details

    • getElement

      public BaseElement getElement()
      Gets element.
      Returns:
      the element
    • setElement

      public void setElement(BaseElement baseElement)
      Sets element.
      Parameters:
      baseElement - the element to set
    • getSeverity

      public String getSeverity()
      Gets severity.
      Returns:
      the severity
    • setSeverity

      public void setSeverity(String severity)
      Sets severity.
      Parameters:
      severity - the severity to set
    • getAbbreviation

      public String getAbbreviation()
      Gets abbreviation.
      Returns:
      the abbreviation
    • setAbbreviation

      public void setAbbreviation(String abbreviation)
      Sets abbreviation.
      Parameters:
      abbreviation - the abbreviation to set
    • getMessage

      public String getMessage()
      Gets message.
      Returns:
      the message
    • setMessage

      public void setMessage(String message)
      Sets message.
      Parameters:
      message - the message to set
    • getAnnotation

      public Annotation getAnnotation()
      Returns Annotation of violation.
      Returns:
      annotation of violation.
    • setAnnotation

      public void setAnnotation(Annotation annotation)
      Set Annotation of violation.
      Parameters:
      an - annotation of violation.
    • getConstrainedProject

      public Project getConstrainedProject()
      Returns project of the violated constraint
    • setConstrainedProject

      public void setConstrainedProject(Project constrainedProject)
      Set project of the violated constraint
      Parameters:
      constrainedProject - project of the violated constraint
    • getParentObject

      public Object getParentObject()
      Returns parent object that should be used for grouping the results.
      Returns:
      parent object.
    • setParentObject

      public void setParentObject(Object parentObject)
      set parent object that should be used for grouping the results.
      Parameters:
      parentObject - parent object that should be used for grouping the results
    • getParentRule

      public Constraint getParentRule()
      Returns parent rule if such is specified.
      Returns:
      parent rule or null.
    • setParentRule

      public void setParentRule(Constraint parentRule)
      Set parent rule if such is specified.
      Parameters:
      parentRule - parent rule if such is specified
    • getRule

      public Constraint getRule()
      Returns violated rule.
      Returns:
      violated rule.
    • setRule

      public void setRule(Constraint rule)
      Set violated rule.
      Parameters:
      rule - violated rule
    • getTargetObject

      public Object getTargetObject()
      Returns target object of the rule violation result.
      Returns:
      target object.
    • setTargetObject

      public void setTargetObject(Object targetObject)
      Set target object of the rule violation result.
      Parameters:
      targetObject - target object of the rule violation result
    • isIgnored

      public boolean isIgnored()
      Checks if this violation result is ignored by user. User can ignore pair of violation - target element invalid input: '&' constraint.
      Returns:
      ignored flag.
    • getIsIgnored

      public boolean getIsIgnored()
      Checks if this violation result is ignored by user. User can ignore pair of violation - target element invalid input: '&' constraint.
      Returns:
      ignored flag.
    • setIgnored

      public void setIgnored(boolean isIgnored)
      Set if this violation result is ignored by user.
      Parameters:
      isIgnored - true if this violation result is ignored by user, else false
    • getIsSystemValidationResult

      public boolean getIsSystemValidationResult()
      If true validation result came from system rule, else false.
      Returns:
      true if validation result came from system rule, else false.
    • isSystemValidationResult

      public boolean isSystemValidationResult()
      If true validation result came from system rule, else false.
      Returns:
      true if validation result came from system rule, else false.
    • setSystemValidationResult

      public void setSystemValidationResult(boolean isSystemValidationResult)
      Set If true validation result came from system rule.
      Parameters:
      isSystemValidationResult - true if validation result came from system rule, else false.
    • toString

      public String toString()
      Overrides:
      toString in class Object