Package com.ptc.core.validation
Interface ValidationResultSet
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
com.ptc.core.validation._AbstractValidationResultSet,com.ptc.core.businessRules.validation._RuleValidationResultSet,AbstractValidationResultSet,RuleValidationResultSet
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
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddResult(ValidationResult result) Add a new validation result.voidappendResults(ValidationResultSet resultSet) Appends a result set of new validation results.voidappendResults(List<? extends ValidationResult> resultList) Appends a list of new validation results.List<? extends ValidationResult>
Supported API: trueList<? extends ValidationResult>getResultsByStatus(ValidationStatus status)
Supported API: trueList<? extends ValidationResult>getResultsByTargetObject(Object targetObj)
Supported API: trueList<? extends ValidationResult>getResultsByValidationKey(ValidationKey ruleKey)
Supported API: truegetSingleResult(ValidationKey validationKey, Object targetObject) Returns a single validation result for a given validation key and target object.booleanreplaceResult(ValidationResult result) Used to replace a validation result in the result set.
-
Method Details
-
addResult
Add a new validation result.
Supported API: true- Parameters:
result-
-
appendResults
Appends a list of new validation results.
Supported API: true- Parameters:
resultList-
-
appendResults
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
Supported API: true- Parameters:
status-- Returns:
- all validation results for a given status
-
getResultsByTargetObject
Supported API: true- Parameters:
targetObj-- Returns:
- all validation results for a given target object
-
getResultsByValidationKey
Supported API: true- Parameters:
ruleKey-- Returns:
- all validation results for a given validation key.
-
getSingleResult
Returns a single validation result for a given validation key and target object.
Supported API: true- Parameters:
validationKey-targetObject-- Returns:
- validation result
-
replaceResult
Used to replace a validation result in the result set.
Supported API: true- Parameters:
result-- Returns:
- true when successfully replaced
-