Package org.apache.turbine.util
Class FormMessage
java.lang.Object
org.apache.turbine.util.FormMessage
A message class for holding information about a message that
 relates to a specific form and field.  Used together with
 FormMessages class.
- Version:
- $Id$
- Author:
- Neeme Praks
- 
Constructor SummaryConstructorsConstructorDescriptionConstructor.FormMessage(String formName) Constructor.FormMessage(String formName, String fieldName) Constructor.FormMessage(String formName, String fieldName, String message) Constructor.
- 
Method SummaryModifier and TypeMethodDescriptionString[]Return the field names.Return the form name.Return the message.voidsetFieldName(String fieldName) Adds one field name.voidsetFormName(String formName) Set the form name.voidsetMessage(String message) Set the message.toString()Write out the contents of the message in a friendly manner.
- 
Constructor Details- 
FormMessagepublic FormMessage()Constructor.
- 
FormMessageConstructor.- Parameters:
- formName- A String with the form name.
 
- 
FormMessageConstructor.- Parameters:
- formName- A String with the form name.
- fieldName- A String with the field name.
 
- 
FormMessageConstructor.- Parameters:
- formName- A String with the form name.
- fieldName- A String with the field name.
- message- A String with the message.
 
 
- 
- 
Method Details- 
getMessageReturn the message.- Returns:
- A String with the message.
 
- 
getFormNameReturn the form name.- Returns:
- A String with the form name.
 
- 
getFieldNamesReturn the field names.- Returns:
- A String[] with the field names.
 
- 
setMessageSet the message.- Parameters:
- message- A String with the message.
 
- 
setFormNameSet the form name.- Parameters:
- formName- A String with the form name.
 
- 
setFieldNameAdds one field name.- Parameters:
- fieldName- A String with the field name.
 
- 
toStringWrite out the contents of the message in a friendly manner.
 
-