Package com.ptc.core.ui.validation
Class UIValidationResult
java.lang.Object
com.ptc.core.ui.validation.UIValidationResult
- All Implemented Interfaces:
Serializable
A UIValidationResult object contains one unit of validation output (one action/component, one 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 selected action/component (e.g., display the
action/component, hide the action/component, allow the selected action to proceed, etc.)
In addition, a UIValidationResult 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 to the user.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic UIValidationResultCreates an empty UIValidationResult object
Supported API: truestatic UIValidationResultnewInstance(UIValidationKey validationKey, UIValidationStatus status) Creates a UIValdiationResult object
Supported API: truestatic UIValidationResultnewInstance(UIValidationKey validationKey, UIValidationStatus status, UIValidationFeedbackMsg feedbackMsg) Creates a UIValdiationResult object
Supported API: truestatic UIValidationResultnewInstance(UIValidationKey validationKey, UIValidationStatus status, List<UIValidationFeedbackMsg> feedbackMsgList) Creates a UIValdiationResult object
Supported API: truestatic UIValidationResultnewInstance(UIValidationKey validationKey, UIValidationStatus status, WTReference targetObject) Creates a UIValdiationResult object
Supported API: truestatic UIValidationResultnewInstance(UIValidationKey validationKey, UIValidationStatus status, WTReference targetObject, UIValidationFeedbackMsg feedbackMsg) Creates a UIValdiationResult object
Supported API: truestatic UIValidationResultnewInstance(UIValidationKey validationKey, UIValidationStatus status, WTReference targetObject, List<UIValidationFeedbackMsg> feedbackMsgList) Creates a UIValdiationResult object
Supported API: true
-
Method Details
-
newInstance
Creates an empty UIValidationResult object
Supported API: true -
newInstance
public static UIValidationResult newInstance(UIValidationKey validationKey, UIValidationStatus status) Creates a UIValdiationResult object
Supported API: true- Parameters:
validationKey- TheUIValidationKeythat was used to perform validationstatus- aUIValidationStatusenumerated type indicating what should be done for the given action/component
-
newInstance
public static UIValidationResult newInstance(UIValidationKey validationKey, UIValidationStatus status, List<UIValidationFeedbackMsg> feedbackMsgList) Creates a UIValdiationResult object
Supported API: true- Parameters:
validationKey- The validationKey that was used to perform validationstatus- a UIValidationStatus enumerated type indicating what should be done for the given action/componentfeedbackMsgList- A List of UIValidationFeedbackMsg objects providing additional feedback for the end user
-
newInstance
public static UIValidationResult newInstance(UIValidationKey validationKey, UIValidationStatus status, UIValidationFeedbackMsg feedbackMsg) Creates a UIValdiationResult object
Supported API: true- Parameters:
validationKey- TheUIValidationKeythat was used to perform validationstatus- aUIValidationStatusenumerated type indicating what should be done for the given action/componentfeedbackMsg- A singleUIValidationFeedbackMsgto associate with the result
-
newInstance
public static UIValidationResult newInstance(UIValidationKey validationKey, UIValidationStatus status, WTReference targetObject) Creates a UIValdiationResult object
Supported API: true- Parameters:
validationKey- TheUIValidationKeythat was used to perform validationstatus- aUIValidationStatusenumerated type indicating what should be done for the given action/componenttargetObject- The object that this UIValidationResult applies to
-
newInstance
public static UIValidationResult newInstance(UIValidationKey validationKey, UIValidationStatus status, WTReference targetObject, List<UIValidationFeedbackMsg> feedbackMsgList) Creates a UIValdiationResult object
Supported API: true- Parameters:
validationKey- The validationKey that was used to perform validationstatus- a UIValidationStatus enumerated type indicating what should be done for the given action/componenttargetObject- The object that this UIValidationResult applies tofeedbackMsgList- A List of UIValidationFeedbackMsg objects providing additional feedback for the end user
-
newInstance
public static UIValidationResult newInstance(UIValidationKey validationKey, UIValidationStatus status, WTReference targetObject, UIValidationFeedbackMsg feedbackMsg) Creates a UIValdiationResult object
Supported API: true- Parameters:
validationKey- TheUIValidationKeythat was used to perform validationstatus- aUIValidationStatusenumerated type indicating what should be done for the given action/componenttargetObject- The object that this UIValidationResult applies tofeedbackMsg- A singleUIValidationFeedbackMsgto associate with the result
-