abbot.finder
Class BasicFinder

java.lang.Object
  extended by 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.


Constructor Summary
BasicFinder()
           
BasicFinder(Hierarchy h)
           
 
Method Summary
 Component find(Container root, Matcher m)
          Find a Component, using the given Matcher to determine whether a given component in the hierarchy under the given root is the desired one.
protected  Component find(Hierarchy h, Matcher m)
           
 Component find(Matcher m)
          Find a Component, using the given Matcher to determine whether a given component in the hierarchy used by this ComponentFinder is the desired one.
protected  void findMatches(Hierarchy h, Matcher m, Component c, Set found)
           
static ComponentFinder getDefault()
           
protected  Hierarchy getHierarchy()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicFinder

public BasicFinder()

BasicFinder

public BasicFinder(Hierarchy h)
Method Detail

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

SourceForge