|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.zphinx.spine.vo.CommandComponent
com.zphinx.spine.vo.ResultObject
public class ResultObject
ResultObject acts as a DataTransferAssembler used to send the output of data transactions accross layers for onward processing
created 10-Jan-2005 18:33:01
copyright © Zphinx Software Solutions
| Field Summary | |
|---|---|
static String |
ERRORS
The key which used to persist errors in this object |
static String |
MESSAGES
The key which used to persist messages in this object |
| Constructor Summary | |
|---|---|
ResultObject()
Constructor initializes a displayMessages object using the default locale,client developers are advised to use addMessageOrError(DisplayMessage) to set the messages. |
|
| Method Summary | |
|---|---|
void |
addMessageOrError(DisplayMessage message)
Sets a DisplayMessage or DisplayError into this Object |
DisplayMessages |
getDisplayMessages()
Gets the DisplayMessages object associated with this object, using the default locale for this jvm |
String |
getErrors()
Gets the errors saved in this object |
String |
getMessages()
Gets the messages |
boolean |
isErrorFlag()
Gets the flag indicating failure or success.True if there was an error during processing |
boolean |
isMessageFlag()
Gets a flag indicating the presence of messages in this object |
void |
setDisplayMessages(DisplayMessages displayMessages)
Sets the displayMessages |
void |
setErrors(String errorString)
Sets the errors saved in this object,and sets the errorFlag to true the errors must be a String with length greater than 1, and cannot be a blank String |
void |
setMessages(String messages)
Sets the messages returned with this Object, accepts a String value |
String |
toString()
|
| Methods inherited from class com.zphinx.spine.vo.CommandComponent |
|---|
getDaoConstructor, getDataObject, getDataObjectClass, getDataType, getObj, getOperation, setDaoConstructor, setDataObject, setDataObjectClass, setDataType, setObj, setOperation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String MESSAGES
public static final String ERRORS
| Constructor Detail |
|---|
public ResultObject()
addMessageOrError(DisplayMessage) to set the messages. ViewProcessor
| Method Detail |
|---|
public String getErrors()
public void setErrors(String errorString)
errorString - The errors to set.public boolean isErrorFlag()
public DisplayMessages getDisplayMessages()
public boolean isMessageFlag()
public String toString()
toString in class Objectpublic void setDisplayMessages(DisplayMessages displayMessages)
displayMessages - the displayMessages to setpublic String getMessages()
public void setMessages(String messages)
messages - the messages to setpublic void addMessageOrError(DisplayMessage message)
message - the message or error object to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||