pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.result
Class FormResult.FormFieldResult

java.lang.Object
  extended by org.torweg.pulse.result.FormResult.FormFieldResult
All Implemented Interfaces:
java.io.Serializable, INameable, INamed
Enclosing class:
FormResult

public static class FormResult.FormFieldResult
extends java.lang.Object
implements INameable, java.io.Serializable

A result for a form field.

Version:
$Revision: 1391 $
Author:
Christian Schatt
See Also:
Serialized Form

Constructor Summary
FormResult.FormFieldResult()
          The default constructor.
FormResult.FormFieldResult(java.lang.String n, FormResult.FormFieldStatus s, java.lang.String v, java.lang.String i)
          The constructor that sets the name, the status, the value and the invalid value of the form field.
 
Method Summary
 java.lang.String getInvalidValue()
          Returns the invalid value that could not be set to the form field.
 java.lang.String getName()
          Returns the name of the form field.
 FormResult.FormFieldStatus getStatus()
          Returns the status of the form field.
 java.lang.String getValue()
          Returns the value of the form field.
 void setInvalidValue(java.lang.String i)
          Sets the invalid value that could not be set to the form field.
 void setName(java.lang.String n)
          Sets the name of the form field.
 void setStatus(FormResult.FormFieldStatus s)
          Sets the status of the form field.
 void setValue(java.lang.String v)
          Sets the value of the form field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormResult.FormFieldResult

public FormResult.FormFieldResult()
The default constructor.


FormResult.FormFieldResult

public FormResult.FormFieldResult(java.lang.String n, FormResult.FormFieldStatus s,
                                  java.lang.String v,
                                  java.lang.String i)
The constructor that sets the name, the status, the value and the invalid value of the form field.

Parameters:
n - the name to set
s - the status to set
v - the value to set
i - the invalid value to set
Method Detail

getName

public final java.lang.String getName()
Returns the name of the form field.

Specified by:
getName in interface INamed
Returns:
the name

setName

public final void setName(java.lang.String n)
Sets the name of the form field.

Specified by:
setName in interface INameable
Parameters:
n - the name to set

getStatus

public final FormResult.FormFieldStatus getStatus()
Returns the status of the form field.

Returns:
the status

setStatus

public final void setStatus(FormResult.FormFieldStatus s)
Sets the status of the form field.

Parameters:
s - the status to set

getValue

public final java.lang.String getValue()
Returns the value of the form field.

Returns:
the value

setValue

public final void setValue(java.lang.String v)
Sets the value of the form field.

Parameters:
v - the value to set

getInvalidValue

public final java.lang.String getInvalidValue()
Returns the invalid value that could not be set to the form field.

Returns:
the invalid value

setInvalidValue

public final void setInvalidValue(java.lang.String i)
Sets the invalid value that could not be set to the form field.

Parameters:
i - the invalid value to set