|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.component.util.admin.EditorResult
public class EditorResult
A base class to derive editor-results from.
| 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 |
|---|
protected EditorResult()
public EditorResult(boolean success)
EditorResult with the given success-state.
success - the success-state to set| Method Detail |
|---|
public final void setSuccess(boolean success)
EditorResult.
success - the success-state to setpublic final boolean isSuccess()
EditorResult.
true if the editor has been executed successfully,
false otherwisepublic final void setAttributes(java.util.List<java.lang.String> attributes)
EditorResult.
attributes - the attributes to setpublic final boolean addAttribute(java.lang.String attribute)
EditorResult.
attribute - the attribute to add
List.add(Object)public final java.util.List<java.lang.String> getAttributes()
EditorResult.
public final void setErrors(java.util.List<java.lang.String> errors)
EditorResult.
errors - the errors to setpublic final boolean addError(java.lang.String error)
EditorResult.
error - the error to add
List.add(Object)public final java.util.List<java.lang.String> getErrors()
EditorResult.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||