net.sourceforge.stripes.validation
Interface ValidationError

All Superinterfaces:
Message, Serializable
All Known Implementing Classes:
LocalizableError, ScopedLocalizableError, SimpleError

public interface ValidationError
extends Message

Interface to which all error objects in Stripes should conform.

Author:
Tim Fennell

Method Summary
 String getActionPath()
          Returns the action path of the form/ActionBean, if one was supplied.
 Class<? extends ActionBean> getBeanclass()
          Returns the class of the ActionBean associated to the request.
 String getFieldName()
          Returns the name of the field in error, if one was supplied.
 String getFieldValue()
          Returns the value that is in error, if one was supplied.
 void setActionPath(String actionPath)
          Provides the message with access to the unique action path associated with the ActionBean bound to the current request.
 void setBeanclass(Class<? extends ActionBean> clazz)
          Provides the message with access to the class of the ActionBean that is bound to the current request.
 void setFieldName(String name)
          Provides the message with access to the name of the field in which the error occurred.
 void setFieldValue(String value)
          Provides the message with access to the value of the field in which the error occurred
 
Methods inherited from interface net.sourceforge.stripes.action.Message
getMessage
 

Method Detail

setFieldName

void setFieldName(String name)
Provides the message with access to the name of the field in which the error occurred. This is the name the system uses for the field (e.g. cat.name) and not necessarily something that the user should see!


setFieldValue

void setFieldValue(String value)
Provides the message with access to the value of the field in which the error occurred


setActionPath

void setActionPath(String actionPath)
Provides the message with access to the unique action path associated with the ActionBean bound to the current request.


setBeanclass

void setBeanclass(Class<? extends ActionBean> clazz)
Provides the message with access to the class of the ActionBean that is bound to the current request.


getFieldName

String getFieldName()
Returns the name of the field in error, if one was supplied.


getFieldValue

String getFieldValue()
Returns the value that is in error, if one was supplied.


getActionPath

String getActionPath()
Returns the action path of the form/ActionBean, if one was supplied.


getBeanclass

Class<? extends ActionBean> getBeanclass()
Returns the class of the ActionBean associated to the request.



? Copyright 2005-2006, Stripes Development Team.