Class DataValidationInfo


  • public class DataValidationInfo
    extends java.lang.Object
    Contains failed validation information.
    • Constructor Summary

      Constructors 
      Constructor Description
      DataValidationInfo​(java.lang.Long guid)  
    • 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> failedValidations)
      Add a failed validation message and list of failed validations for an attribute.
      void addErrorField​(java.lang.String memberName, java.util.List<IDataValidation> failedValidations)
      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()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DataValidationInfo

        public DataValidationInfo​(java.lang.Long guid)
    • 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 over written.
      • addErrorField

        public void addErrorField​(java.lang.String memberName,
                                  java.lang.String message,
                                  java.util.List<IDataValidation> failedValidations)
        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 over written.
      • addErrorField

        public void addErrorField​(java.lang.String memberName,
                                  java.util.List<IDataValidation> failedValidations)
        Add a list of failed validations for an attribute. If there was a previous value for an attribute it will be over written.
      • 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 class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object