|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.struts.action.ActionForm
org.figure8.join.control.JoinForm
public abstract class JoinForm
An abstract ActinoForm class that all Join form classes should extend. This class implements Struts validate() method as a wrapper to a new doValidate() abstract method. This wrapper is intended to perform some pre-processing (such as retrieving the specified operation to invoke and initializing errors array) and providing some helpful methods (such as retrieving resource bundles and adding validation errors to array).
| Field Summary | |
|---|---|
protected org.apache.struts.action.ActionErrors |
errors
The ActionErrors associated to this form validation. |
| Fields inherited from class org.apache.struts.action.ActionForm |
|---|
multipartRequestHandler, servlet |
| Constructor Summary | |
|---|---|
JoinForm()
|
|
| Method Summary | |
|---|---|
protected void |
addActionError(java.lang.String errorType,
java.lang.String param1)
Add an action validation error to current error array. |
protected void |
addActionError(java.lang.String errorType,
java.lang.String param1,
java.lang.String param2)
Add an action validation error to current error array. |
protected void |
addActionError(java.lang.String errorType,
java.lang.String param1,
java.lang.String param2,
java.lang.String param3)
Add an action validation error to current error array. |
abstract void |
doValidate(java.lang.String operation,
org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
Abstract method that subclasses must implement. |
org.apache.struts.util.MessageResources |
getGuiMessageResources()
|
long |
getId()
|
java.lang.String |
getIdStr()
|
org.apache.struts.util.MessageResources |
getMessageResources()
|
void |
reset(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
Reset form attributes. |
void |
setId(long id)
|
void |
setIdStr(java.lang.String idStr)
|
org.apache.struts.action.ActionErrors |
validate(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
Validation of the form attributes. |
protected void |
validateEntityObjectId()
Validate the identifier of EntityObject associated
with this form. |
| Methods inherited from class org.apache.struts.action.ActionForm |
|---|
getMultipartRequestHandler, getServlet, getServletWrapper, reset, setMultipartRequestHandler, setServlet, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.apache.struts.action.ActionErrors errors
ActionErrors associated to this form validation.
| Constructor Detail |
|---|
public JoinForm()
| Method Detail |
|---|
public abstract void doValidate(java.lang.String operation,
org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
operation - String representing the operation to invoke on Actionmapping - Mapping between forwards name and path for this actionrequest - The servlet container request wrapperpublic org.apache.struts.util.MessageResources getMessageResources()
public org.apache.struts.util.MessageResources getGuiMessageResources()
public long getId()
public void setId(long id)
id - Identifier of EntityObject associated with this formpublic java.lang.String getIdStr()
public void setIdStr(java.lang.String idStr)
idStr - String representation of EntityObject identifier (must be a long)
protected void addActionError(java.lang.String errorType,
java.lang.String param1)
errorType - Key representing the error type into default resource bundleparam1 - Parameter to inject into error type label
protected void addActionError(java.lang.String errorType,
java.lang.String param1,
java.lang.String param2)
errorType - Key representing the error type into default resource bundleparam1 - Parameter to inject into error type labelparam2 - Parameter to inject into error type label
protected void addActionError(java.lang.String errorType,
java.lang.String param1,
java.lang.String param2,
java.lang.String param3)
errorType - Key representing the error type into default resource bundleparam1 - Parameter to inject into error type labelparam2 - Parameter to inject into error type labelparam3 - Parameter to inject into error type labelprotected void validateEntityObjectId()
EntityObject associated
with this form. This takes place in 2 step : ensure that string representation of
if is not null nor empty, ensure that it represents a long value.
public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
validate in class org.apache.struts.action.ActionFormmapping - Mapping between forwards name and path for this actionrequest - The servlet container request wrapper
public void reset(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
reset in class org.apache.struts.action.ActionFormmapping - Mapping between forwards name and path for this actionrequest - The servlet container request wrapper
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||