Package com.mendix.core.objectmanagement
Class DataValidationInfo
- java.lang.Object
-
- com.mendix.core.objectmanagement.DataValidationInfo
-
public class DataValidationInfo extends java.lang.Object
Contains failed validation information.
-
-
Constructor Summary
Constructors Constructor Description DataValidationInfo(java.lang.Long guid)
Creates a failed validation with the specified identifier.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addErrorField(java.lang.String memberName, java.lang.String message)
Add a failed validation message for an attribute.void
addErrorField(java.lang.String memberName, java.lang.String message, java.util.List<IDataValidation> validations)
Add a failed validation message and list of failed validations for an attribute.void
addErrorField(java.lang.String memberName, java.util.List<IDataValidation> validations)
Add a list of failed validations for an attribute.boolean
equals(java.lang.Object other)
java.util.HashMap<java.lang.String,java.lang.String>
errorFields()
A map from attribute name to the failed validation message.java.util.HashMap<java.lang.String,java.util.List<IDataValidation>>
failedValidations()
List of failed validations.java.lang.Long
guid()
The id of the object which contain the validated attributes.int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
guid
public java.lang.Long guid()
The id of the object which contain the validated attributes.- Returns:
- id of the object which contain the validated attributes
-
errorFields
public java.util.HashMap<java.lang.String,java.lang.String> errorFields()
A map from attribute name to the failed validation message.- Returns:
- map from attribute name to the failed validation message
-
addErrorField
public void addErrorField(java.lang.String memberName, java.lang.String message)
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
public void addErrorField(java.lang.String memberName, java.lang.String message, java.util.List<IDataValidation> validations)
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
public void addErrorField(java.lang.String memberName, java.util.List<IDataValidation> validations)
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
public java.util.HashMap<java.lang.String,java.util.List<IDataValidation>> failedValidations()
List of failed validations.- Returns:
- list of failed validations
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-