FormElementValidationResult
public FormElementValidationResult(valid
:
boolean)
Creates a FormElementValidationResult with given setting for the validity but without any message.
Parameters:
valid
-
the desired validity
FormElementValidationResult
public
FormElementValidationResult(valid
:
boolean, message
:
String)
Creates a FormElementValidationResult with given setting for the validity and corresponding message.
This is especially useful to represent a failed validation including some error message.
Parameters:
valid
-
the desired validity
message
-
the desired message
FormElementValidationResult
public
FormElementValidationResult(valid
:
boolean, message
:
String, data
:
Map)
Creates a FormElementValidationResult with given setting for the validity and corresponding message.
This is especially useful to represent a failed validation including some error message. Additional
data can be stored, too.
Parameters:
valid
-
the desired validity
message
-
the desired message
data
-
the desired data