|
Services Builder for Screens | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface describes the interaction between a custom step and task variables. Both simple string data and table data is supported by the interface.
Method Summary | |
ITable |
createTable(java.lang.String[] columnNames)
Returns a new instance of ITable that can be used to populate tabular data for a task output. |
java.lang.String |
get(java.lang.String varName)
Retrieves the String data from the variable map using the supplied key. |
ITable |
getTable(java.lang.String tableName)
Retrieves an ITable instance from the variable map so it can be further manipulated or queried. |
java.lang.String |
put(java.lang.String varName,
java.lang.String data)
Stores the supplied String data to the task variable named. |
ITable |
putTable(java.lang.String tableName,
ITable table)
Stores the ITable instance in the variable map with the key being the tableName parameter. |
java.lang.String |
remove(java.lang.String varName)
Remove the String data from the variable map using the supplied variable name. |
ITable |
removeTable(java.lang.String tableName)
Removes an ITable instance from the variable map |
Method Detail |
public java.lang.String put(java.lang.String varName, java.lang.String data)
varName
- name of the key to store the datadata
- the String data to store in the variable map.
null
if no data was mapped.
java.lang.NullPointerException
- if the varName parameter is null
java.lang.IllegalArgumentException
- if the varName parameter matches a key in the variable
map used for an ITable
instance.public java.lang.String get(java.lang.String varName)
varName
- The name of the variable to be returned
null
if the variable doesn't exisit.
java.lang.NullPointerException
- if the varName parameter is null
java.lang.IllegalArgumentException
- if the varName parameter matches a key in the variable
map used for an ITable
instance.public java.lang.String remove(java.lang.String varName)
varName
- the name of the variable to remove from the map
null
if there was no mapping for
key. A null
return can also indicate that the task data previously associated null
with the specified varName, if the implementation supports null
values.
java.lang.NullPointerException
- if varName
is null.
java.lang.IllegalArgumentException
- if the varName parameter matches a key in the variable
map used for an ITable
instance.public ITable createTable(java.lang.String[] columnNames)
ITable
that can be used to populate tabular data for a task output.
columnNames
- A String array containing the name of the columns. These column names must match the column names
specified in the designer in order for this data to be available in the task output.
The order of the columns is significant because as rows are added to the table the column order will be assumed
as the order specified in this parameter.
ITable
java.lang.NullPointerException
- if the columnNames parameters is null
java.lang.IllegalArgumentException
- if the columnNames parameter is emptyITable.addRow(java.lang.String[])
public ITable getTable(java.lang.String tableName)
ITable
instance from the variable map so it can be further manipulated or queried.
The intention of this method is to facilitate the ability to alter a table data structure that was added to the
variable map in a previous task step as the methods provided for populating tabular data will not work on tables
in the variable map directly. Any changes to the ITable
instance will not be committed to the variable map
if the putTable method is not called.
tableName
- The name of the ITable
instance to be retrieved from the variable map
ITable
that was found in the variable map with the given name, or null if not found.
java.lang.NullPointerException
- if the tableName Parameter is null
java.lang.IllegalArgumentException
- if the tableName parameter matches a key in the variable map used for String data.putTable(java.lang.String, com.attachmate.sc.ssa.ITable)
public ITable putTable(java.lang.String tableName, ITable table)
ITable
instance in the variable map with the key being the tableName parameter.
tableName
- The name of the table to be added to the variable map. In order for this table data to be available
as a task output the tableName parameter must exactly match that name of a task output specified in the designer.table
- The ITable
instance to be put in the variable map.
ITable
instance that was previously stored in the variable map with the given tableName,
or null if one was not found
java.lang.NullPointerException
- if either the tableName or table parameters are null
java.lang.IllegalArgumentException
- if the tableName parameter matches a key in the variable map used for String data.getTable(java.lang.String)
public ITable removeTable(java.lang.String tableName)
ITable
instance from the variable map
tableName
- The name of the ITable
Returns:ITable
instance that was removed from the variable map or null if not found
java.lang.NullPointerException
- if the tableName parameter is null
java.lang.IllegalArgumentException
- if the tableName parameter matches a key in the variable map used for String data.putTable(java.lang.String, com.attachmate.sc.ssa.ITable)
|
Services Builder for Screens | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |