com.acsinet_solutions.util.validator
Interface ValidationIssueHolder

All Known Implementing Classes:
ValidationException, ValidationRuntimeException

public interface ValidationIssueHolder

This interface denotes an object that holds a list of validation issues. It is intended to be a superinterface for both ValidationException and ValidationRuntimeException classes, so they may be identified in framework or user code. ValidationIssueBuilder does not implement this interface, but may implement it if necessary.

Author:
Santiago Arriaga

Method Summary
 java.util.List<ValidationIssue> getIssues()
          Get a list of the validation issues that raised this exception
 java.util.List<java.lang.String> getValidationMessages(MessageFactory factory)
          Get the validation messages corresponding to the input issue list.
 void printIssues()
          Useful debug method that prints the validation issues
 

Method Detail

getIssues

java.util.List<ValidationIssue> getIssues()
Get a list of the validation issues that raised this exception

Returns:
A not-null not-empty List of not-null ValidationIssue instances

getValidationMessages

java.util.List<java.lang.String> getValidationMessages(MessageFactory factory)
Get the validation messages corresponding to the input issue list. All keys must be defined in the current service, or an error will be raised


printIssues

void printIssues()
Useful debug method that prints the validation issues