Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.aendvari.griffin.validation.handlers.simple
Class SimpleErrorHandler  view SimpleErrorHandler download SimpleErrorHandler.java

java.lang.Object
  extended bycom.aendvari.griffin.validation.handlers.simple.SimpleErrorHandler

public class SimpleErrorHandler
extends java.lang.Object

A simple error handler for performing data validation. All errors are collected into a com.aendvari.common.notices.Notices object which is available once the validation process has completed.


Field Summary
private  com.aendvari.common.notices.Notices errors
          A com.aendvari.common.notices.Notices instance for holding all notices for later retrieval.
 
Constructor Summary
SimpleErrorHandler()
           
 
Method Summary
 void addError(java.lang.String resourceKey, java.lang.String propertyName, java.lang.String propertyValue)
          Adds an error to the messages list.
 com.aendvari.common.notices.Notices getErrorMessages()
          Retrieve the error messages.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

errors

private com.aendvari.common.notices.Notices errors
A com.aendvari.common.notices.Notices instance for holding all notices for later retrieval.

Constructor Detail

SimpleErrorHandler

public SimpleErrorHandler()
Method Detail

addError

public void addError(java.lang.String resourceKey,
                     java.lang.String propertyName,
                     java.lang.String propertyValue)
              throws java.lang.Exception
Adds an error to the messages list.


getErrorMessages

public com.aendvari.common.notices.Notices getErrorMessages()
Retrieve the error messages.