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.component.util.admin
Class EditorResult

java.lang.Object
  extended by org.torweg.pulse.component.util.admin.EditorResult
Direct Known Subclasses:
RepresentativeEditorResult, RetailerEditorResult

public class EditorResult
extends java.lang.Object

A base class to derive editor-results from.

Version:
$Revision: 1570 $
Author:
Daniel Dietz

Constructor Summary
protected EditorResult()
          Default constructor.
  EditorResult(boolean success)
          Creates a new EditorResult with the given success-state.
 
Method Summary
 boolean addAttribute(java.lang.String attribute)
          Adds an attribute to the attributes of the EditorResult.
 boolean addError(java.lang.String error)
          Adds an error to the errors of the EditorResult.
 java.util.List<java.lang.String> getAttributes()
          Returns the attributes of the EditorResult.
 java.util.List<java.lang.String> getErrors()
          Returns the errors of the EditorResult.
 boolean isSuccess()
          Returns the success-state of the EditorResult.
 void setAttributes(java.util.List<java.lang.String> attributes)
          Sets the attributes for the EditorResult.
 void setErrors(java.util.List<java.lang.String> errors)
          Sets the errors for the EditorResult.
 void setSuccess(boolean success)
          Sets the success-state for the EditorResult.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditorResult

protected EditorResult()
Default constructor.


EditorResult

public EditorResult(boolean success)
Creates a new EditorResult with the given success-state.

Parameters:
success - the success-state to set
Method Detail

setSuccess

public final void setSuccess(boolean success)
Sets the success-state for the EditorResult.

Parameters:
success - the success-state to set

isSuccess

public final boolean isSuccess()
Returns the success-state of the EditorResult.

Returns:
true if the editor has been executed successfully, false otherwise

setAttributes

public final void setAttributes(java.util.List<java.lang.String> attributes)
Sets the attributes for the EditorResult.

Parameters:
attributes - the attributes to set

addAttribute

public final boolean addAttribute(java.lang.String attribute)
Adds an attribute to the attributes of the EditorResult.

Parameters:
attribute - the attribute to add
Returns:
List.add(Object)

getAttributes

public final java.util.List<java.lang.String> getAttributes()
Returns the attributes of the EditorResult.

Returns:
the attributes

setErrors

public final void setErrors(java.util.List<java.lang.String> errors)
Sets the errors for the EditorResult.

Parameters:
errors - the errors to set

addError

public final boolean addError(java.lang.String error)
Adds an error to the errors of the EditorResult.

Parameters:
error - the error to add
Returns:
List.add(Object)

getErrors

public final java.util.List<java.lang.String> getErrors()
Returns the errors of the EditorResult.

Returns:
the errors