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
Supported API: true
Extendable: false
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 Summary
Modifier and TypeMethodDescriptiongetFailedRulesMessage(Locale locale) A list of rules that failed in the result set.getLocalizedMessage(Locale locale) Produces an output of the entire validation result set as a string.Methods inherited from class com.ptc.core.validation.AbstractValidationResultSet
getResultsByStatus, hasResultsByStatus
-
Method Details
-
getLocalizedMessage
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
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:
-