Interface ValidationResult

All Superinterfaces:
Serializable
All Known Implementing Classes:
AbstractValidationResult, RuleValidationResult

public interface ValidationResult extends Serializable
A ValidationResult object contains one unit of validation output for validation key and target object. It should always contain at least a validationKey attribute, indicating the key that was used to perform the validation, and a status attribute indicating what should be done with the result. In addition, a ValidationResult may also contain a targetObject attribute, which links the result to a specific WTReference, and a feedbackMsg attribute, which contains text that could optionally be displayed.

Supported API: true

Extendable: false
  • Method Details

    • getValidationKey

      ValidationKey getValidationKey()


      Supported API: true
      Returns:
      the business rule key for the validation result
    • setValidationKey

      void setValidationKey(ValidationKey key)


      Supported API: true
      Parameters:
      key -
    • getTargetObject

      Object getTargetObject()


      Supported API: true
      Returns:
      the target object for the validation result
    • setTargetObject

      void setTargetObject(Object targetObject)


      Supported API: true
      Parameters:
      targetObject -
    • getStatus

      ValidationStatus getStatus()


      Supported API: true
      Returns:
      the validation status of the target object for the business rule.
    • setStatus

      void setStatus(ValidationStatus status)


      Supported API: true
      Parameters:
      status -
    • getFeedbackMessages

      List<? extends FeedbackMsg> getFeedbackMessages()


      Supported API: true
      Returns:
      the feedback messages for this result
    • addFeedbackMessage

      void addFeedbackMessage(FeedbackMsg message)


      Supported API: true
      Parameters:
      message -
    • addFeedbackMessages

      void addFeedbackMessages(List<? extends FeedbackMsg> messages)


      Supported API: true
      Parameters:
      messages -