org.apache.turbine.util
Class FormMessage

java.lang.Object
  extended byorg.apache.turbine.util.FormMessage

public class FormMessage
extends java.lang.Object

A message class for holding information about a message that relates to a specific form and field. Used together with FormMessages class.

Version:
$Id: FormMessage.java 534527 2007-05-02 16:10:59Z tv $
Author:
Neeme Praks

Constructor Summary
FormMessage()
          Constructor.
FormMessage(java.lang.String formName)
          Constructor.
FormMessage(java.lang.String formName, java.lang.String fieldName)
          Constructor.
FormMessage(java.lang.String formName, java.lang.String fieldName, java.lang.String message)
          Constructor.
 
Method Summary
 java.lang.String[] getFieldNames()
          Return the field names.
 java.lang.String getFormName()
          Return the form name.
 java.lang.String getMessage()
          Return the message.
 void setFieldName(java.lang.String fieldName)
          Adds one field name.
 void setFormName(java.lang.String formName)
          Set the form name.
 void setMessage(java.lang.String message)
          Set the message.
 java.lang.String toString()
          Write out the contents of the message in a friendly manner.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FormMessage

public FormMessage()
Constructor.


FormMessage

public FormMessage(java.lang.String formName)
Constructor.

Parameters:
formName - A String with the form name.

FormMessage

public FormMessage(java.lang.String formName,
                   java.lang.String fieldName)
Constructor.

Parameters:
formName - A String with the form name.
fieldName - A String with the field name.

FormMessage

public FormMessage(java.lang.String formName,
                   java.lang.String fieldName,
                   java.lang.String message)
Constructor.

Parameters:
formName - A String with the form name.
fieldName - A String with the field name.
message - A String with the message.
Method Detail

getMessage

public java.lang.String getMessage()
Return the message.

Returns:
A String with the message.

getFormName

public java.lang.String getFormName()
Return the form name.

Returns:
A String with the form name.

getFieldNames

public java.lang.String[] getFieldNames()
Return the field names.

Returns:
A String[] with the field names.

setMessage

public void setMessage(java.lang.String message)
Set the message.

Parameters:
message - A String with the message.

setFormName

public void setFormName(java.lang.String formName)
Set the form name.

Parameters:
formName - A String with the form name.

setFieldName

public void setFieldName(java.lang.String fieldName)
Adds one field name.

Parameters:
fieldName - A String with the field name.

toString

public java.lang.String toString()
Write out the contents of the message in a friendly manner.



Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.