public class TypeRegistryConfiguration
extends java.lang.Object
implements cucumber.api.TypeRegistryConfigurer
Modifier and Type | Class and Description |
---|---|
static class |
TypeRegistryConfiguration.JacksonTransformer |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REGEX_BOOLEAN
on|off|true|false|yes|no represents a boolean value
|
static java.lang.String |
REGEX_CHECKBOX_ACTION
Check|UnCheck possible actions on a checkbox
|
static java.lang.String |
REGEX_COMBOBOX_ACTION |
static java.lang.String |
REGEX_EDITBOX
editbox|textfield|textarea|field|box possible names to call an "editbox"
|
static java.lang.String |
REGEX_EDITBOX_ACTION
type|typekeys|typechars|SetTextCharacters|SetTextValue|SetUnverifiedTextCharacters|SetUnverifiedTextValue possible actions on an editbox
|
static java.lang.String |
REGEX_LIST
"(.+)" a string separated by
TestRecordData.POSSIBLE_SEPARATOR , it will be parsed as a list |
static java.lang.String |
REGEX_LISTVIEW_ACTION |
static java.lang.String |
REGEX_MAPITEM
(([a-zA-Z_]+[a-zA-Z_0-9]*\:)?([a-zA-Z_]+[a-zA-Z_0-9]*\.)?([a-zA-Z_]+[a-zA-Z_0-9]*)) represents a map item, such as mapID:section.item
|
static java.lang.String |
REGEX_MAPITEM_OR_STRING
(([a-zA-Z_]+[a-zA-Z_0-9]*\:)?([a-zA-Z_]+[a-zA-Z_0-9]*\.)?([a-zA-Z_]+[a-zA-Z_0-9]*))|"([^"]*)"|'([^']*)'
or a map item, such as mapID:section.item or a double-quoted-string or a single-quoted-string |
static java.lang.String |
REGEX_VAR
(\^?[a-zA-Z_]+[a-zA-Z_0-9]*) represents a variable name (with an optional leading symbol ^)
|
static java.lang.String |
REGEX_VAR_MAPITEM
(\^?[a-zA-Z_]+[a-zA-Z_0-9]*)|(([a-zA-Z_]+[a-zA-Z_0-9]*\:)?([a-zA-Z_]+[a-zA-Z_0-9]*\.)?([a-zA-Z_]+[a-zA-Z_0-9]*))
a variable name with an optional leading symbol ^ or a map item, such as mapID:section.item |
static java.lang.String |
REGEX_VAR_MAPITEM_OR_STRING
(\^?[a-zA-Z_]+[a-zA-Z_0-9]*)|(([a-zA-Z_]+[a-zA-Z_0-9]*\:)?([a-zA-Z_]+[a-zA-Z_0-9]*\.)?([a-zA-Z_]+[a-zA-Z_0-9]*))|"([^"]*)"|'([^']*)'
a variable name with an optional leading symbol ^ or a map item, such as mapID:section.item or a double-quoted-string or a single-quoted-string |
static java.lang.String |
REGEX_VAR_OR_STRING
(\^?[a-zA-Z_]+[a-zA-Z_0-9]*)|"([^"]*)"|'([^']*)'
a variable name with an optional leading symbol ^ or a double-quoted-string or a single-quoted-string |
static java.lang.String |
SEPARATOR_WIN_COMP
$SEPARATOR_WIN_COMP$ used to separate the window's RS and component's RS in a string
|
Constructor and Description |
---|
TypeRegistryConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
configureTypeRegistry(cucumber.api.TypeRegistry typeRegistry)
Defined types:
{list}, see
REGEX_LIST
{var}, see REGEX_VAR
{var_or_string}, see REGEX_VAR_OR_STRING
{mapitem}, see REGEX_MAPITEM
{mapitem_or_string}, see REGEX_MAPITEM_OR_STRING
{var_mapitem}, see REGEX_VAR_MAPITEM
{var_mapitem_or_string}, see REGEX_MAPITEM_OR_STRING
{editbox}, see REGEX_EDITBOX
{checkbox_action}, see REGEX_CHECKBOX_ACTION
{editbox_action}, see REGEX_EDITBOX_ACTION
{combobox_action}, see REGEX_COMBOBOX_ACTION
{listview_action}, see REGEX_LISTVIEW_ACTION
{boolean}, see REGEX_BOOLEAN
|
static java.lang.String |
generateRegexActions(java.lang.Class<?> commandModelClass)
Generate regex expression representing the possible keywords related to the command model.
|
java.util.Locale |
locale() |
static void |
main(java.lang.String[] args) |
public static final java.lang.String REGEX_LIST
TestRecordData.POSSIBLE_SEPARATOR
, it will be parsed as a listpublic static final java.lang.String REGEX_VAR
public static final java.lang.String REGEX_BOOLEAN
public static final java.lang.String REGEX_VAR_OR_STRING
public static final java.lang.String REGEX_MAPITEM
public static final java.lang.String REGEX_MAPITEM_OR_STRING
public static final java.lang.String REGEX_VAR_MAPITEM
public static final java.lang.String REGEX_VAR_MAPITEM_OR_STRING
public static final java.lang.String REGEX_EDITBOX
public static final java.lang.String REGEX_CHECKBOX_ACTION
public static final java.lang.String REGEX_EDITBOX_ACTION
public static final java.lang.String REGEX_COMBOBOX_ACTION
public static final java.lang.String REGEX_LISTVIEW_ACTION
public static final java.lang.String SEPARATOR_WIN_COMP
public static final java.lang.String generateRegexActions(java.lang.Class<?> commandModelClass)
commandModelClass
- Class, the command model class in the package "org.safs.model.commands".public java.util.Locale locale()
locale
in interface cucumber.api.TypeRegistryConfigurer
public void configureTypeRegistry(cucumber.api.TypeRegistry typeRegistry)
REGEX_LIST
REGEX_VAR
REGEX_VAR_OR_STRING
REGEX_MAPITEM
REGEX_MAPITEM_OR_STRING
REGEX_VAR_MAPITEM
REGEX_MAPITEM_OR_STRING
REGEX_EDITBOX
REGEX_CHECKBOX_ACTION
REGEX_EDITBOX_ACTION
REGEX_COMBOBOX_ACTION
REGEX_LISTVIEW_ACTION
REGEX_BOOLEAN
configureTypeRegistry
in interface cucumber.api.TypeRegistryConfigurer
public static void main(java.lang.String[] args)
Copyright © SAS Institute. All Rights Reserved.