org.openqa.selenium.lift.find
Class BaseFinder<S,T>
java.lang.Object
org.openqa.selenium.lift.find.BaseFinder<S,T>
- All Implemented Interfaces:
- org.hamcrest.SelfDescribing, Finder<S,T>
- Direct Known Subclasses:
- HtmlTagFinder, XPathFinder
public abstract class BaseFinder<S,T>
- extends java.lang.Object
- implements Finder<S,T>
Base class for Finder
s. These allow the creation of a specification
to be applied to objects of type T, to identify and return a Collection of
any contained objects of type S.
- Author:
- rchatley (Robert Chatley)
Field Summary |
protected java.util.List<org.hamcrest.Matcher<S>> |
matchers
|
Method Summary |
protected java.util.Collection<S> |
allMatching(java.util.List<org.hamcrest.Matcher<S>> matchers,
java.util.Collection<S> items)
|
protected abstract void |
describeTargetTo(org.hamcrest.Description description)
|
void |
describeTo(org.hamcrest.Description description)
|
protected abstract java.util.Collection<S> |
extractFrom(T context)
|
java.util.Collection<S> |
findFrom(T context)
|
Finder<S,T> |
with(org.hamcrest.Matcher<S> matcher)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
matchers
protected java.util.List<org.hamcrest.Matcher<S>> matchers
BaseFinder
public BaseFinder()
findFrom
public java.util.Collection<S> findFrom(T context)
- Specified by:
findFrom
in interface Finder<S,T>
with
public Finder<S,T> with(org.hamcrest.Matcher<S> matcher)
- Specified by:
with
in interface Finder<S,T>
describeTo
public void describeTo(org.hamcrest.Description description)
- Specified by:
describeTo
in interface org.hamcrest.SelfDescribing
extractFrom
protected abstract java.util.Collection<S> extractFrom(T context)
describeTargetTo
protected abstract void describeTargetTo(org.hamcrest.Description description)
allMatching
protected java.util.Collection<S> allMatching(java.util.List<org.hamcrest.Matcher<S>> matchers,
java.util.Collection<S> items)
Copyright © 2011. All Rights Reserved.