Interface ValidationErrors

All Known Implementing Classes:
DefaultValidationErrors

public interface ValidationErrors
Validation Errors to interface and manage ValidationError lists. This ValidationErrors interface ca also support multilevel field validation with pushField and popField methods.
  • Method Details

    • add

      void add(ValidationError validationError)
      Operation to add the ValidationError to the list of errors.
      Parameters:
      validationError - the validation error to be added to the list.
    • pushField

      void pushField(String field)
      Multilevel field Support method to push fields in a Stack.
      Parameters:
      field - the field to be stacked when the logic enters a child entity.
    • popField

      void popField()
      Multilevel field Support method to pop fields from a Stack.
    • parseFieldStack

      String parseFieldStack()
      Operation to retrieve the string representation of the fields currently in the stack.
      Returns:
      the string representation of the values in the stack.
    • getValidationErrors

      List<ValidationError> getValidationErrors()
      Returns the list of validation errors.
      Returns:
      the list of ValidationError's