|
SunSPOT host API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.spot.client.command.AbstractClientCommand
public abstract class AbstractClientCommand
AbstractClientCommand helper for implementing ISpotClientCommand
s that ensures
that the wrong execute signature cannot be called. We assume that concrete ISpotClientCommand
s
will only override the signature that they implement.
Field Summary |
---|
Fields inherited from interface com.sun.spot.client.command.ISpotClientCommand |
---|
SIGNATURE_BOOLEAN, SIGNATURE_INT, SIGNATURE_LONG, SIGNATURE_NOTHING, SIGNATURE_OPTIONAL_SECOND_STRING, SIGNATURE_OPTIONAL_STRING, SIGNATURE_STRING, SIGNATURE_THREE_STRINGS, SIGNATURE_TWO_STRINGS |
Constructor Summary | |
---|---|
AbstractClientCommand()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.sun.spot.client.command.ISpotClientCommand |
---|
getName, getSignature, getUsage |
Constructor Detail |
---|
public AbstractClientCommand()
Method Detail |
---|
public Object execute(ISpotClientCommandHelper helper) throws SpotClientException, IOException
ISpotClientCommand
ISpotClientCommand.getSignature()
is ISpotClientCommand.SIGNATURE_NOTHING
then execute the command,
otherwise throw an IllegalStateException
execute
in interface ISpotClientCommand
helper
- TODO
SpotClientException
IOException
public Object execute(ISpotClientCommandHelper helper, int arg0) throws SpotClientException, IOException
ISpotClientCommand
ISpotClientCommand.getSignature()
is ISpotClientCommand.SIGNATURE_INT
then execute the command,
otherwise throw an IllegalStateException
execute
in interface ISpotClientCommand
helper
- TODO
SpotClientException
IOException
public Object execute(ISpotClientCommandHelper helper, long arg0) throws SpotClientException, IOException
ISpotClientCommand
ISpotClientCommand.getSignature()
is ISpotClientCommand.SIGNATURE_LONG
then execute the command,
otherwise throw an IllegalStateException
execute
in interface ISpotClientCommand
helper
- TODO
SpotClientException
IOException
public Object execute(ISpotClientCommandHelper helper, boolean arg0) throws SpotClientException, IOException
ISpotClientCommand
ISpotClientCommand.getSignature()
is ISpotClientCommand.SIGNATURE_BOOLEAN
then execute the command,
otherwise throw an IllegalStateException
execute
in interface ISpotClientCommand
helper
- TODO
SpotClientException
IOException
public Object execute(ISpotClientCommandHelper helper, String arg0) throws SpotClientException, IOException
ISpotClientCommand
ISpotClientCommand.getSignature()
is ISpotClientCommand.SIGNATURE_STRING
or ISpotClientCommand.SIGNATURE_OPTIONAL_STRING
then execute the command, otherwise throw an IllegalStateException
execute
in interface ISpotClientCommand
helper
- TODO
SpotClientException
IOException
public Object execute(ISpotClientCommandHelper helper, String arg0, String arg1) throws SpotClientException, IOException
ISpotClientCommand
ISpotClientCommand.getSignature()
is ISpotClientCommand.SIGNATURE_TWO_STRINGS
then execute the command,
otherwise throw an IllegalStateException
execute
in interface ISpotClientCommand
helper
- TODO
SpotClientException
IOException
public Object execute(ISpotClientCommandHelper helper, String arg0, String arg1, String arg2) throws SpotClientException, IOException
ISpotClientCommand
ISpotClientCommand.getSignature()
is ISpotClientCommand.SIGNATURE_THREE_STRINGS
then execute the command,
otherwise throw an IllegalStateException
execute
in interface ISpotClientCommand
helper
- TODO
SpotClientException
IOException
public static void assertThat(boolean b, String msg)
|
SunSPOT host API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |