WEB-INF.cftags.interface coldbox.system.validation.result.IValidationResult
Method Summary | |
---|---|
IValidationResult
|
addError(IValidationError error)
Add errors into the result object. |
IValidationResult
|
clearErrors()
Clear All errors. |
array
|
getAllErrors([string field])
Get the Errors Array, which is an array of error messages (strings). |
numeric
|
getErrorCount([string field])
Get how many errors you have. |
coldbox.system.validation.result.IValidationError[]
|
getFieldErrors(string field)
Get an error object for a specific field that failed. |
struct
|
getResultMetadata()
Get a collection of metadata about the validation results. |
string
|
getTargetName()
Get the name of the target object that got validated. |
string
|
getValidationLocale()
Get the validation locale. |
boolean
|
hasErrors([string field])
Determine if the results had error or not. |
boolean
|
hasLocale()
has locale information. |
IValidationResult
|
setLocale(string locale)
Set the validation locale. |
IValidationResult
|
setResultMetadata(struct data)
Set a collection of metadata into the results object. |
IValidationResult
|
setTargetName(string name)
Set the validation target object name. |
Methods inherited from class WEB-INF.cftags.interface |
---|
None |
Method Detail |
---|
Add errors into the result object
error
- The validation error to add into the results objectClear All errors
Get the Errors Array, which is an array of error messages (strings)
field
- The field to use to filter the error messages on (optional)Get how many errors you have
field
- The field to count on (optional)Get an error object for a specific field that failed. Throws exception if the field does not exist
field
- The field to return error objects onGet a collection of metadata about the validation results
Get the name of the target object that got validated
Get the validation locale
Determine if the results had error or not
field
- The field to count on (optional)has locale information
Set the validation locale
locale
Set a collection of metadata into the results object
data
Set the validation target object name
name