public class ValidateContext extends Object implements FieldMessageContext
| Constructor and Description |
|---|
ValidateContext(DialogController dCtrl,
DialogObjectConstant dObjectConstant)
Constructs a new ValidationContext
|
ValidateContext(DialogController dCtrl,
DialogObjectConstant dialogObject,
ActionType actionType)
Construct a new Validate Context.
|
ValidateContext(DialogController dCtrl,
ListRow lRow,
DialogObjectConstant dObjectConstant)
Constructs a new ValidationContext
|
ValidateContext(DialogController dCtrl,
ListRow lRow,
DialogObjectConstant dObjectConstant,
ActionType action)
Construct a new Validation Context.
|
| Modifier and Type | Method and Description |
|---|---|
<M,T> M |
convertToModel(T value)
Converts the specified view value to the corresponding domain value using
the attribute's converter.
|
ActionType |
getAction()
Get the action type (if any) that initiated this validation.
|
DialogController |
getDialogController() |
DialogObjectConstant |
getDialogObjectConstant() |
DialogObjectConstant |
getField() |
ListRow |
getListRow() |
RoleConstant |
getRole()
Get the role of the dialog object's attribute.
|
public ValidateContext(DialogController dCtrl, DialogObjectConstant dObjectConstant)
dCtrl - The DialogController of the contextdObjectConstant - The DialogObjectConstant of the contextpublic ValidateContext(DialogController dCtrl, DialogObjectConstant dialogObject, ActionType actionType)
dCtrl - context's dialog controllerdialogObject - dialog object being validatedactionType - action type that lead to this validationpublic ValidateContext(DialogController dCtrl, ListRow lRow, DialogObjectConstant dObjectConstant)
dCtrl - The DialogController of the contextlRow - The ListRow of the contextdObjectConstant - The DialogObjectConstant of the contextpublic ValidateContext(DialogController dCtrl, ListRow lRow, DialogObjectConstant dObjectConstant, ActionType action)
dCtrl - dialog controller of the contextlRow - context's list rowdObjectConstant - context's dialog objectaction - context's actionpublic <M,T> M convertToModel(T value)
throws ConvertException
M - modelT - targetvalue - the view value to convert.ConvertException - On all problemspublic DialogController getDialogController()
public DialogObjectConstant getDialogObjectConstant()
public RoleConstant getRole()
public ListRow getListRow()
public ActionType getAction()
public DialogObjectConstant getField()
getField in interface FieldMessageContextCopyright © 2006–2017 Esito AS. All rights reserved.