|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsophware.home.io.HomeCommandStatus
public class HomeCommandStatus
The HomeCommandStatus represents the status of a
HomeCommand returned to a HomeCommandListener.
HomeCommand,
HomeCommandListener,
Serialized Form| Field Summary | |
|---|---|
static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
HomeCommandStatus(HomeCommand command,
boolean success)
Instantiate a HomeCommandStatus for a command. |
|
HomeCommandStatus(HomeCommand command,
boolean success,
HomeException e)
Instantiate a HomeCommandStatus for a command. |
|
| Method Summary | |
|---|---|
HomeException |
getFailureReason()
Gets the reason for failure |
HomeCommand |
getHomeCommand()
Gets the HomeCommand associated with this status. |
boolean |
success()
Gets the status of the command |
java.lang.String |
toString()
Gets the String representation of this status |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final long serialVersionUID
| Constructor Detail |
|---|
public HomeCommandStatus(HomeCommand command,
boolean success)
HomeCommandStatus for a command.
command - the HomeCommandsuccess - the status of the transmission
public HomeCommandStatus(HomeCommand command,
boolean success,
HomeException e)
HomeCommandStatus for a command.
command - the HomeCommandsuccess - the status of the transmissione - the exception representing the reason for the failure| Method Detail |
|---|
public HomeCommand getHomeCommand()
HomeCommand associated with this status.
HomeCommandpublic boolean success()
public HomeException getFailureReason()
HomeExceptionpublic java.lang.String toString()
String representation of this status
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||