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 ExtendedFormResult

java.lang.Object
  extended by org.torweg.pulse.result.FormResult
      extended by org.torweg.pulse.result.ExtendedFormResult
All Implemented Interfaces:
java.io.Serializable

public class ExtendedFormResult
extends FormResult

A FormResult extended by a success-flag.

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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.torweg.pulse.result.FormResult
FormResult.FormFieldResult, FormResult.FormFieldStatus
 
Constructor Summary
ExtendedFormResult()
          The default constructor.
ExtendedFormResult(boolean flag, java.util.Collection<? extends FormResult.FormFieldResult> fields)
          The constructor that sets the success-flag and the FormFieldResults.
 
Method Summary
 boolean isSuccess()
          Returns the success-flag, indicating whether the form was parsed successfully.
 ExtendedFormResult setSuccess(boolean flag)
          Sets the success-flag, indicating whether the form was parsed successfully.
 
Methods inherited from class org.torweg.pulse.result.FormResult
getFormFieldResult, getFormFieldResults, setFormFieldResults
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtendedFormResult

public ExtendedFormResult()
The default constructor.


ExtendedFormResult

public ExtendedFormResult(boolean flag,
                          java.util.Collection<? extends FormResult.FormFieldResult> fields)
The constructor that sets the success-flag and the FormFieldResults.

Parameters:
flag - the success-flag to set
fields - the FormFieldResults to set
Method Detail

isSuccess

public final boolean isSuccess()
Returns the success-flag, indicating whether the form was parsed successfully.

Returns:
the success-flag

setSuccess

public final ExtendedFormResult setSuccess(boolean flag)
Sets the success-flag, indicating whether the form was parsed successfully.

Parameters:
flag - the success-flag to set
Returns:
the ExtendedFormResult itself