abbot.finder
Class BasicFinder
java.lang.Object
abbot.finder.BasicFinder
- All Implemented Interfaces:
- ComponentFinder
public class BasicFinder
- extends Object
- implements ComponentFinder
Provides basic component lookup, examining each component in turn.
Searches all components of interest in a given hierarchy.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicFinder
public BasicFinder()
BasicFinder
public BasicFinder(Hierarchy h)
getDefault
public static ComponentFinder getDefault()
getHierarchy
protected Hierarchy getHierarchy()
find
public Component find(Container root,
Matcher m)
throws ComponentNotFoundException,
MultipleComponentsFoundException
- Find a Component, using the given Matcher to determine whether a given
component in the hierarchy under the given root is the desired
one.
- Specified by:
find
in interface ComponentFinder
- Throws:
ComponentNotFoundException
MultipleComponentsFoundException
find
public Component find(Matcher m)
throws ComponentNotFoundException,
MultipleComponentsFoundException
- Find a Component, using the given Matcher to determine whether a given
component in the hierarchy used by this ComponentFinder is the desired
one.
- Specified by:
find
in interface ComponentFinder
- Throws:
ComponentNotFoundException
MultipleComponentsFoundException
find
protected Component find(Hierarchy h,
Matcher m)
throws ComponentNotFoundException,
MultipleComponentsFoundException
- Throws:
ComponentNotFoundException
MultipleComponentsFoundException
findMatches
protected void findMatches(Hierarchy h,
Matcher m,
Component c,
Set found)
Copyright © 2002-2008 Timothy Wall. All Rights Reserved.
Abbot is hosted on