org.jboss.arquillian.ajocado.locator.element
Class AbstractIterableLocator<T extends IterableLocator<T>>
java.lang.Object
org.jboss.arquillian.ajocado.locator.AbstractLocator<T>
org.jboss.arquillian.ajocado.locator.element.AbstractElementLocator<T>
org.jboss.arquillian.ajocado.locator.element.AbstractIterableLocator<T>
- Type Parameters:
T - type what we want to iterate over - this type will be returned by method provided by this abtract class
- All Implemented Interfaces:
- Iterable<T>, ElementLocator<T>, IterableLocator<T>, Locator<T>, SeleniumRepresentable
public abstract class AbstractIterableLocator<T extends IterableLocator<T>>
- extends AbstractElementLocator<T>
- implements IterableLocator<T>
Abstract implementation of locator which can iterate over it's descendant.
- Version:
- $Revision$
- Author:
- Lukas Fryc
|
Method Summary |
Iterator<T> |
iterator()
Returns the iterator through the occurrences of this locator |
int |
size()
Returns the count of occurrences of this locator |
| Methods inherited from interface org.jboss.arquillian.ajocado.locator.element.IterableLocator |
get |
AbstractIterableLocator
public AbstractIterableLocator(String locator)
- Constructs locator for given string representation
- Parameters:
locator - the string representation of locator
iterator
public Iterator<T> iterator()
- Description copied from interface:
IterableLocator
- Returns the iterator through the occurrences of this locator
- Specified by:
iterator in interface Iterable<T extends IterableLocator<T>>- Specified by:
iterator in interface IterableLocator<T extends IterableLocator<T>>
- Returns:
- the iterator through the occurrences of this locator
size
public int size()
- Description copied from interface:
IterableLocator
- Returns the count of occurrences of this locator
- Specified by:
size in interface IterableLocator<T extends IterableLocator<T>>
- Returns:
- the count of occurrences of this locator
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.