public class ConditionResolver
extends java.lang.Object
ConditionResolver
enables tests at runtime, on which
platform the application is running. IConditionResolver
. The custom IConditionResolver
must be
registered by using registerResolver(IConditionResolver)
.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MD_PLATFORM |
static java.lang.String |
PLATFORM_ANDROID |
static java.lang.String |
PLATFORM_BLACKBERRY |
static java.lang.String |
PLATFORM_IOS_JC |
static java.lang.String |
PLATFORM_WIN8 |
static java.lang.String |
PLATFORM_WINPHONE |
Constructor and Description |
---|
ConditionResolver() |
Modifier and Type | Method and Description |
---|---|
static boolean |
evaluate(java.lang.String expression)
Evaluate the current platform for Mobile Designer
|
static boolean |
isPlatform(java.lang.String platform) |
static void |
registerResolver(IConditionResolver resolver)
Set the given resolver as the current one.
|
public static final java.lang.String MD_PLATFORM
public static final java.lang.String PLATFORM_BLACKBERRY
public static final java.lang.String PLATFORM_ANDROID
public static final java.lang.String PLATFORM_WINPHONE
public static final java.lang.String PLATFORM_IOS_JC
public static final java.lang.String PLATFORM_WIN8
public static void registerResolver(IConditionResolver resolver)
resolver
- the resolver to be set.public static boolean evaluate(java.lang.String expression)
expression
- the value of the platform as Stringpublic static boolean isPlatform(java.lang.String platform)
platform
- the value of the platform as String