public class

AggregateLocator

extends AbstractLocator
implements Locator
java.lang.Object
   ↳ com.atlassian.jira.functest.framework.locator.AbstractLocator
     ↳ com.atlassian.jira.functest.framework.locator.AggregateLocator

Class Overview

AggregateLocator will "aggregate" together the results of the provided Locators

NOTE : Locators 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.

Summary

[Expand]
Inherited Fields
From class com.atlassian.jira.functest.framework.locator.AbstractLocator
Public Constructors
AggregateLocator(Locator firstLocator, Locator secondLocator)
Creates an agggregate of the firstLocator and the secondLocator
AggregateLocator(Locator[] locators)
Aggregates together the values of the specified array of Locators
Public Methods
Node[] getNodes()
A Locator may return 0 nodes, 1 node or multiple nodes.
String toString()
[Expand]
Inherited Methods
From class com.atlassian.jira.functest.framework.locator.AbstractLocator
From class java.lang.Object
From interface com.atlassian.jira.functest.framework.locator.Locator

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 Locators

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

public String toString ()