public class VpUtil
extends java.lang.Object
vpManual
verification points.| Constructor and Description |
|---|
VpUtil() |
| Modifier and Type | Method and Description |
|---|---|
static ITestDataProperties |
getTestData(java.util.Hashtable properties)
Provides a default properties
TestData object. |
static ITestDataTree |
getTestData(ITestDataTreeNode[] rootNodes)
Provides a default tree
TestData object. |
static ITestDataList |
getTestData(java.lang.Object[] list)
Provides a default list
TestData object. |
static ITestDataTable |
getTestData(java.lang.Object[][] table)
Provides a default table
TestData object. |
static ITestDataText |
getTestData(java.lang.String text)
Provides a default
TestDataText object. |
static ITestDataList |
getTestData(java.util.Vector list)
Provides a default list
TestData object. |
static ITestDataMenu |
getTestDataMenu(java.lang.String text,
java.lang.String mnemonic,
java.lang.String accelerator)
Provides a default menu item that can be used as the node type in a tree test
data object to get the destinctive menu item presentation in the tree.
|
static ITestDataMenu |
getTestDataMenu(java.lang.String text,
java.lang.String mnemonic,
java.lang.String accelerator,
boolean isCheckbox,
boolean isRadiobutton,
boolean isSelected)
Provides a default menu item that can be used as the node type in a tree test
data object to get the destinctive menu item presentation in the tree.
|
static ITestDataTableRegion |
getTestDataTableRegion()
Provides a comparison region that specifies all cells in the table are
to be included in the comparison region.
|
static ITestDataTableRegion |
getTestDataTableRegion(Cell cell)
Provides a comparison region that specifies a single cell in the table
that is to be included in the comparison region.
|
static ITestDataTableRegion |
getTestDataTableRegion(Cell topLeft,
Cell bottomRight)
Provides a comparison region that specifies the block of cells in a
table that are to be included in the comparison region.
|
static ITestDataTableRegion |
getTestDataTableRegion(Column column)
Provides a comparison region that specifies a single column in a table
that is to be included in the comparison region.
|
static ITestDataTableRegion |
getTestDataTableRegion(Row row)
Provides a comparison region that specifies a single row in a table
that is to be included in the comparison region.
|
static ITestDataTreeNode |
getTestDataTreeNode(java.lang.Object node)
Provides a default tree node object.
|
public static ITestDataText getTestData(java.lang.String text)
TestDataText object. The meta properties for how the data will
be compared are defaulted.text - the text that the TestData object wraps.TestData object that contains the supplied text.public static ITestDataProperties getTestData(java.util.Hashtable properties)
TestData object. The masking bit associated with each
property is defaulted to false so that all properties are compared.properties - the properties that TestData object wrapspublic static ITestDataList getTestData(java.util.Vector list)
TestData object. The meta properties for how the data will
be compared are defaulted. No elements will be considered masked from comparison in
the returned list object.list - the set of objects that TestData object encapsulatespublic static ITestDataList getTestData(java.lang.Object[] list)
TestData object. The meta properties for how the data will
be compared are defaulted. No elements will be considered masked from comparison in
the returned list object.list - the set of objects that TestData object encapsulatespublic static ITestDataTable getTestData(java.lang.Object[][] table)
TestData object. The meta properties for how the data will
be compared are defaulted. The comparison region will default to all data being compared.
No row or column headers exist by default.table - the objects that TestData object encapsulatespublic static ITestDataTableRegion getTestDataTableRegion()
public static ITestDataTableRegion getTestDataTableRegion(Column column)
column - the column to be included in the comparison regionpublic static ITestDataTableRegion getTestDataTableRegion(Row row)
row - the row to be included in the comparison regionpublic static ITestDataTableRegion getTestDataTableRegion(Cell cell)
cell - the cell to be included in the comparison regionpublic static ITestDataTableRegion getTestDataTableRegion(Cell topLeft, Cell bottomRight)
topLeft - the top left cell in the block of cells in
the comparison regionbottomRight - the botton right cell in the block of cells in
the comparison regionpublic static ITestDataTree getTestData(ITestDataTreeNode[] rootNodes)
TestData object. The meta properties for how the data will
be compared are made defaults, with all nodes compared.rootNodes - the objects that define the root nodes in the returned data treegetTestDataTreeNode(Object)public static ITestDataTreeNode getTestDataTreeNode(java.lang.Object node)
null and need to be explicitly defined by the caller. Note that by defining
the parent directly in the resultant object, the result is not automatically made a child
of the parent node. Managing of the data hierarchy is left to the user when using this
method.node - the object that is encapsulated by the returned nodeTestDataTree objectgetTestData(ITestDataTreeNode[])public static ITestDataMenu getTestDataMenu(java.lang.String text, java.lang.String mnemonic, java.lang.String accelerator, boolean isCheckbox, boolean isRadiobutton, boolean isSelected)
ITestDataMenu extends ITestData, which
supports generic properties.text - the visible text on the menu itemmnemonic - the character used for keyboard access to the menu itemaccelerator - the key code used to trigger the associated actionisCheckbox - true if the menu item is a checkbox menu itemisRadiobutton - true if the menu item is a RadioButton menu itemisSelected - true if the menu item state is selected or checkedITestDataTree objectgetTestDataTreeNode(Object)public static ITestDataMenu getTestDataMenu(java.lang.String text, java.lang.String mnemonic, java.lang.String accelerator)
getTestDataMenu. In this version
of the method the state attributes all default to false.text - the visible text on the menu itemmnemonic - the character used for keyboard access to the menu itemaccelerator - the key code used to trigger the associated actionITestDataTree objectgetTestDataTreeNode(Object)