Graphene Selenium: API 2.0.0.Alpha1

org.jboss.arquillian.ajocado.locator.element
Class AbstractIterableLocator<T extends IterableLocator<T>>

java.lang.Object
  extended by org.jboss.arquillian.ajocado.locator.AbstractLocator<T>
      extended by org.jboss.arquillian.ajocado.locator.element.AbstractElementLocator<T>
          extended by 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

Nested Class Summary
 class AbstractIterableLocator.ElementIterator
          The iterator over elements given by IterableLocator.
 
Constructor Summary
AbstractIterableLocator(String locator)
          Constructs locator for given string representation
 
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 class org.jboss.arquillian.ajocado.locator.element.AbstractElementLocator
format, getAttribute
 
Methods inherited from class org.jboss.arquillian.ajocado.locator.AbstractLocator
getRawLocator, inSeleniumRepresentation, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.arquillian.ajocado.locator.element.IterableLocator
get
 
Methods inherited from interface org.jboss.arquillian.ajocado.locator.element.ElementLocator
format, getAttribute, getLocationStrategy
 
Methods inherited from interface org.jboss.arquillian.ajocado.locator.Locator
getRawLocator
 
Methods inherited from interface org.jboss.arquillian.ajocado.selenium.SeleniumRepresentable
inSeleniumRepresentation
 

Constructor Detail

AbstractIterableLocator

public AbstractIterableLocator(String locator)
Constructs locator for given string representation

Parameters:
locator - the string representation of locator
Method Detail

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

Graphene Selenium: API 2.0.0.Alpha1

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.