|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbyucc.jhdl.platforms.util.PlatformCommandStatus
This class is used to return the status of a platform command.
Field Summary | |
static PlatformCommandStatus |
SUCCESS
Successful status. |
Constructor Summary | |
PlatformCommandStatus(boolean isSuccessful)
Creates a new PlatformCommandStatus with the specified success state. |
|
PlatformCommandStatus(boolean isSuccessful,
java.lang.String message)
Creates a new PlatformCommandStatus with the specified success state and message. |
Method Summary | |
java.lang.Object |
getCustomField(java.lang.String field)
Gets a custom field. |
java.lang.String |
getMessage()
Returns the message. |
boolean |
isSuccessful()
Returns the success state of the object. |
void |
setCustomField(java.lang.String field,
java.lang.Object value)
Sets a custom field. |
void |
setMessage(java.lang.String message)
Sets the message for the object. |
void |
setSuccessful(boolean state)
Set the success state of the object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final PlatformCommandStatus SUCCESS
Constructor Detail |
public PlatformCommandStatus(boolean isSuccessful)
isSuccessful
- Should be set to true if the command was successful
and to false otherwise.public PlatformCommandStatus(boolean isSuccessful, java.lang.String message)
isSuccessful
- Should be set to true if the command was successful
and to false otherwise.message
- Optional message field.Method Detail |
public void setSuccessful(boolean state)
state
- True if successful, false otherwise.public boolean isSuccessful()
public void setMessage(java.lang.String message)
message
- Message to be set.public java.lang.String getMessage()
public void setCustomField(java.lang.String field, java.lang.Object value)
field
- Name of the field.value
- Value of the field.public java.lang.Object getCustomField(java.lang.String field)
field
- Field to get value of.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |