Class RuleValidationResultSet

java.lang.Object
com.ptc.core.validation._AbstractValidationResultSet
com.ptc.core.validation.AbstractValidationResultSet
com.ptc.core.businessRules.validation._RuleValidationResultSet
com.ptc.core.businessRules.validation.RuleValidationResultSet
All Implemented Interfaces:
ValidationResultSet, Externalizable, Serializable, Evolvable

@GenAsUnPersistable(superClass=AbstractValidationResultSet.class, versions=6386922520958472894L) public class RuleValidationResultSet extends com.ptc.core.businessRules.validation._RuleValidationResultSet
A container of Business RuleValidationResult objects. A RuleValidationResultSet can contain multiple RuleValidationResult each target object for more that one Business rule key.

Supported API: true

Extendable: false
See Also:
  • Method Details

    • getLocalizedMessage

      public String getLocalizedMessage(Locale locale) throws WTException
      Produces an output of the entire validation result set as a string. The string is formatted for HTML content. The output is formatted starting with the business rule name followed by the display identity of the target object that has any feedback messages:

      Attribute Check Business Rule

         000001, A.1 Part1
            WARNING : The attribute "Weight" is not set.
            INFO : The attribute "Weight" is greater than 1000.


      Supported API: true
      Returns:
      a string output representation of feedback messages for each business rule and target objects
      Throws:
      WTException
    • getFailedRulesMessage

      public String getFailedRulesMessage(Locale locale)
      A list of rules that failed in the result set. The format is
      - failed rule 1
      - failed rule 2
      ...

      Supported API: true
      Parameters:
      locale -
      Returns: