Package com.mendix.core.objectmanagement
Class DataValidationInfo
java.lang.Object
com.mendix.core.objectmanagement.DataValidationInfo
Contains failed validation information.
-
Constructor Summary
ConstructorDescriptionDataValidationInfo
(Long guid) Creates a failed validation with the specified identifier. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addErrorField
(String memberName, String message) Add a failed validation message for an attribute.void
addErrorField
(String memberName, String message, List<IDataValidation> validations) Add a failed validation message and list of failed validations for an attribute.void
addErrorField
(String memberName, List<IDataValidation> validations) Add a list of failed validations for an attribute.boolean
A map from attribute name to the failed validation message.List of failed validations.guid()
The id of the object which contain the validated attributes.int
hashCode()
toString()
-
Constructor Details
-
DataValidationInfo
Creates a failed validation with the specified identifier.- Parameters:
guid
- the id of the object which contains the validated attributes
-
-
Method Details
-
guid
The id of the object which contain the validated attributes.- Returns:
- id of the object which contain the validated attributes
-
errorFields
A map from attribute name to the failed validation message.- Returns:
- map from attribute name to the failed validation message
-
addErrorField
Add a failed validation message for an attribute.If there was a previous value for an attribute it will be overwritten.
- Parameters:
memberName
- the attribute on which the failed validation was foundmessage
- the validation failure message
-
addErrorField
Add a failed validation message and list of failed validations for an attribute.If there was a previous value for an attribute it will be overwritten.
- Parameters:
memberName
- the attribute on which the failed validation was foundmessage
- the validation failure messagevalidations
- the failed validations to add
-
addErrorField
Add a list of failed validations for an attribute.If there was a previous value for an attribute it will be overwritten.
- Parameters:
memberName
- the attribute on which the failed validation was foundvalidations
- the failed validations to add
-
failedValidations
List of failed validations.- Returns:
- list of failed validations
-
toString
-
equals
-
hashCode
public int hashCode()
-