Class AttributeValidatorReport


  • public class AttributeValidatorReport
    extends Object
    A report containing the results of an attribute validation.
    Author:
    Luca Frosini (ISTI - CNR)
    • Constructor Detail

      • AttributeValidatorReport

        public AttributeValidatorReport()
    • Method Detail

      • getFieldName

        public String getFieldName()
        Returns the name of the validated field.
        Returns:
        The field name.
      • setFieldName

        public void setFieldName​(String fieldName)
        Sets the name of the validated field.
        Parameters:
        fieldName - The field name.
      • isValid

        public boolean isValid()
        Checks if the validation was successful.
        Returns:
        true if the attribute is valid, false otherwise.
      • setValid

        public void setValid​(boolean valid)
        Sets the validity status of the validation.
        Parameters:
        valid - The validity status.
      • getMessages

        public List<String> getMessages()
        Returns the list of validation messages.
        Returns:
        A list of messages.
      • addMessage

        public void addMessage​(String message)
        Adds a validation message to the report.
        Parameters:
        message - The message to add.