|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.safs.sockets.Message
com.jayway.android.robotium.remotecontrol.solo.Message
com.jayway.android.robotium.remotecontrol.client.SoloMessage
public class SoloMessage
This class is just a wrapper to com.jayway.android.robotium.remotecontrol.solo.Message As we have org.safs.sockets.Message, who has the same. To avoid using the full qualified name, I create this class.
| Field Summary | |
|---|---|
static java.lang.String |
RESULT_INFO_ACTIVITYMONITOR_NULL
|
static java.lang.String |
RESULT_INFO_ASSERTION_FAIL
|
static java.lang.String |
RESULT_INFO_COMMAND_ISNULL
|
static java.lang.String |
RESULT_INFO_COMMAND_UNKNOWN
|
static java.lang.String |
RESULT_INFO_COMPARAISON_FAIL
|
static java.lang.String |
RESULT_INFO_EXCEPTION
|
static java.lang.String |
RESULT_INFO_GENERAL_FAIL
|
static java.lang.String |
RESULT_INFO_GENERAL_SUCCESS
|
static java.lang.String |
RESULT_INFO_GENERATE_UID_NULL
|
static java.lang.String |
RESULT_INFO_MEMORY_ISLOW
|
static java.lang.String |
RESULT_INFO_PARAM_WRONG
|
static java.lang.String |
RESULT_INFO_PROCESSOR_EXCEPTION
|
static java.lang.String |
RESULT_INFO_SOLO_ISNULL
|
| Constructor Summary | |
|---|---|
SoloMessage()
|
|
| Method Summary | |
|---|---|
static boolean |
getBoolean(java.util.Properties props,
java.lang.String key)
Return the optional parameter as a boolean value |
static double |
getDouble(java.util.Properties props,
java.lang.String key)
Return the required parameter as a double value If this parameter is optional, you should catch the ProcessorException |
static float |
getFloat(java.util.Properties props,
java.lang.String key)
Return the required parameter as a float value If this parameter is optional, you should catch the ProcessorException |
static int |
getInteger(java.util.Properties props,
java.lang.String key)
Return the required parameter as an int value If this parameter is optional, you should catch the ProcessorException |
static long |
getLong(java.util.Properties props,
java.lang.String key)
Return the required parameter as a long value If this parameter is optional, you should catch the ProcessorException |
static java.lang.Number |
getNumber(java.util.Properties props,
java.lang.String key,
java.lang.Class numberClass)
Warn: If the key can't be found in the properties object, a ProcessorException will be thrown out |
static java.lang.String |
getSimpleClassName(java.lang.String fullQulifiedClassName)
get the 'simple class name' from a 'full qualified class name' |
static java.lang.String |
getString(java.util.Properties props,
java.lang.String key)
Return the required parameter as a String value If this parameter is optional, you should catch the ProcessorException |
static void |
main(java.lang.String[] args)
|
static java.lang.String |
makeUniqueCacheKey()
Routine is used to create a unique ID String key. |
| Methods inherited from class org.safs.sockets.Message |
|---|
getStackTrace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String RESULT_INFO_GENERAL_SUCCESS
public static final java.lang.String RESULT_INFO_GENERAL_FAIL
public static final java.lang.String RESULT_INFO_COMMAND_ISNULL
public static final java.lang.String RESULT_INFO_COMMAND_UNKNOWN
public static final java.lang.String RESULT_INFO_PARAM_WRONG
public static final java.lang.String RESULT_INFO_PROCESSOR_EXCEPTION
public static final java.lang.String RESULT_INFO_COMPARAISON_FAIL
public static final java.lang.String RESULT_INFO_ASSERTION_FAIL
public static final java.lang.String RESULT_INFO_EXCEPTION
public static final java.lang.String RESULT_INFO_SOLO_ISNULL
public static final java.lang.String RESULT_INFO_MEMORY_ISLOW
public static final java.lang.String RESULT_INFO_ACTIVITYMONITOR_NULL
public static final java.lang.String RESULT_INFO_GENERATE_UID_NULL
| Constructor Detail |
|---|
public SoloMessage()
| Method Detail |
|---|
public static boolean getBoolean(java.util.Properties props,
java.lang.String key)
public static java.lang.String getString(java.util.Properties props,
java.lang.String key)
throws ProcessorException
ProcessException - if the value is not found in the properties.
ProcessorException
public static int getInteger(java.util.Properties props,
java.lang.String key)
throws ProcessorException
ProcessorException
public static float getFloat(java.util.Properties props,
java.lang.String key)
throws ProcessorException
ProcessorException
public static double getDouble(java.util.Properties props,
java.lang.String key)
throws ProcessorException
ProcessorException
public static long getLong(java.util.Properties props,
java.lang.String key)
throws ProcessorException
ProcessorException
public static java.lang.Number getNumber(java.util.Properties props,
java.lang.String key,
java.lang.Class numberClass)
throws ProcessorException
ProcessorExceptionpublic static java.lang.String getSimpleClassName(java.lang.String fullQulifiedClassName)
public static java.lang.String makeUniqueCacheKey()
public static void main(java.lang.String[] args)
throws ProcessorException
ProcessorException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||