public class ValidationContext
extends java.util.HashMap
DSRequest
and RequestContext
availability notes:
Note that only documented APIs are supported.
Modifier and Type | Method and Description |
---|---|
DSRequest | getDSRequest() Returns DSRequest that issued this validation request. |
RequestContext | getRequestContext() Returns RequestContext if validation is performed in the context of a servlet request. |
void | setResultingValue(java.lang.Object value) Sets the resulting value for the validated field. |
public DSRequest getDSRequest()
DSRequest
that issued this validation request.DSRequest
instance or null
.public RequestContext getRequestContext()
RequestContext
if validation is performed in the context of a servlet request.RequestContext
instance or null
.public void setResultingValue(java.lang.Object value)
If multiple validators are configured for the field, once you set the resulting value it will be passed as value for the next validator in chain. Note that record
validation method parameter will hold the original value, but only until validation chain for this field is finished. When validation of the next field will start the original value will no longer be available.
value
- New value to replace the original value.