Interface ValidationResultSet

All Superinterfaces:
Serializable
All Known Implementing Classes:
com.ptc.core.validation._AbstractValidationResultSet, com.ptc.core.businessRules.validation._RuleValidationResultSet, AbstractValidationResultSet, RuleValidationResultSet

public interface ValidationResultSet extends Serializable
A ValidationResultSet object contains one or more ValidationResult objects. It organizes these ValidationResult objects by validation key, status, and target object. This allows the user to retrieve lists of results based on validation key, status, or target object.

Supported API: true

Extendable: false
  • Method Details

    • addResult

      void addResult(ValidationResult result)
      Add a new validation result.

      Supported API: true
      Parameters:
      result -
    • appendResults

      void appendResults(List<? extends ValidationResult> resultList)
      Appends a list of new validation results.

      Supported API: true
      Parameters:
      resultList -
    • appendResults

      void appendResults(ValidationResultSet resultSet)
      Appends a result set of new validation results.

      Supported API: true
      Parameters:
      resultSet -
    • getAllResults

      List<? extends ValidationResult> getAllResults()


      Supported API: true
      Returns:
      all validation results
    • getResultsByStatus

      List<? extends ValidationResult> getResultsByStatus(ValidationStatus status)


      Supported API: true
      Parameters:
      status -
      Returns:
      all validation results for a given status
    • getResultsByTargetObject

      List<? extends ValidationResult> getResultsByTargetObject(Object targetObj)


      Supported API: true
      Parameters:
      targetObj -
      Returns:
      all validation results for a given target object
    • getResultsByValidationKey

      List<? extends ValidationResult> getResultsByValidationKey(ValidationKey ruleKey)


      Supported API: true
      Parameters:
      ruleKey -
      Returns:
      all validation results for a given validation key.
    • getSingleResult

      ValidationResult getSingleResult(ValidationKey validationKey, Object targetObject)
      Returns a single validation result for a given validation key and target object.

      Supported API: true
      Parameters:
      validationKey -
      targetObject -
      Returns:
      validation result
    • replaceResult

      boolean replaceResult(ValidationResult result)
      Used to replace a validation result in the result set.

      Supported API: true
      Parameters:
      result -
      Returns:
      true when successfully replaced