Class Overview
AggregateLocator will "aggregate" together the results of the provided Locator
s
NOTE :
Locator
s are one shot objects. A call to
getNodes()
should return the same Nodes every time it is called. Even if the underlying
data source has changed (for example the WebTester page has changed) the
Locator
MUST return the same data.
Public Constructors
public
AggregateLocator
(Locator firstLocator, Locator secondLocator)
Creates an agggregate of the firstLocator and the secondLocator
Parameters
firstLocator
| the first Locator to aggregate |
secondLocator
| the second Locator to aggregate
|
public
AggregateLocator
(Locator[] locators)
Aggregates together the values of the specified array of Locator
s
Parameters
locators
| must be non null and have a lenght > 0 and have non null array Locator members
|
Public Methods
public
Node[]
getNodes
()
A Locator
may return 0 nodes, 1 node or multiple nodes.
Returns
- a non null array of Nodes that match, or a zero sized array of no matches are made