public class SubCommandMap extends Object
| Constructor and Description |
|---|
SubCommandMap(Context context)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ISubCommand<?> |
get(String commandName)
Get sub-command.
|
Context |
getContext()
Deprecated.
|
Map<String,ISubCommand<?>> |
getMap()
Get read-only sub-command map.
|
Object |
getVar(String varName)
Deprecated.
|
void |
register(ISubCommand<?> subCommand)
Register sub-command.
|
void |
register(com.thoughtworks.selenium.webdriven.SeleneseCommand<?> seleneseCommand,
String name,
ArgumentType... argTypes)
Register SeleneseCommand as ISubCommand.
|
String |
replaceVars(String expr)
Deprecated.
|
String[] |
replaceVarsForArray(String[] exprs)
Deprecated.
|
void |
setVar(Object value,
String varName)
Deprecated.
|
public SubCommandMap(Context context)
context - Selenese Runner context.@Deprecated public Context getContext()
public void register(com.thoughtworks.selenium.webdriven.SeleneseCommand<?> seleneseCommand,
String name,
ArgumentType... argTypes)
seleneseCommand - SeleneseCommand object.name - SeleneseCommand name.argTypes - argument types.public void register(ISubCommand<?> subCommand)
subCommand - ISubCommand object.public ISubCommand<?> get(String commandName)
commandName - sub-command name.public Map<String,ISubCommand<?>> getMap()
@Deprecated public void setVar(Object value, String varName)
value - value.varName - variable name.@Deprecated public Object getVar(String varName)
varName - variable name.@Deprecated public String replaceVars(String expr)
expr - expression string.@Deprecated public String[] replaceVarsForArray(String[] exprs)
exprs - expression strings.Copyright © 2016. All rights reserved.