Package com.ptc.core.validation
Interface ValidationResult
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
AbstractValidationResult,RuleValidationResult
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
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddFeedbackMessage(FeedbackMsg message)
Supported API: truevoidaddFeedbackMessages(List<? extends FeedbackMsg> messages)
Supported API: trueList<? extends FeedbackMsg>
Supported API: true
Supported API: true
Supported API: true
Supported API: truevoidsetStatus(ValidationStatus status)
Supported API: truevoidsetTargetObject(Object targetObject)
Supported API: truevoid
Supported API: true
-
Method Details
-
getValidationKey
ValidationKey getValidationKey()
Supported API: true- Returns:
- the business rule key for the validation result
-
setValidationKey
Supported API: true- Parameters:
key-
-
getTargetObject
Object getTargetObject()
Supported API: true- Returns:
- the target object for the validation result
-
setTargetObject
Supported API: true- Parameters:
targetObject-
-
getStatus
ValidationStatus getStatus()
Supported API: true- Returns:
- the validation status of the target object for the business rule.
-
setStatus
Supported API: true- Parameters:
status-
-
getFeedbackMessages
List<? extends FeedbackMsg> getFeedbackMessages()
Supported API: true- Returns:
- the feedback messages for this result
-
addFeedbackMessage
Supported API: true- Parameters:
message-
-
addFeedbackMessages
Supported API: true- Parameters:
messages-
-