org.eclipse.swtbot.swt.finder.resolvers
Class Resolver

java.lang.Object
  extended by org.eclipse.swtbot.swt.finder.resolvers.Resolver

public class Resolver
extends Object

A resolver that maps classes to the IChildrenResolvers that resolve the classes.

Version:
$Id$
Author:
Ketan Padegaonkar <KetanPadegaonkar [at] gmail [dot] com>
See Also:
IResolvable.getResolvableClasses()

Constructor Summary
Resolver()
           
 
Method Summary
 void addResolver(IResolvable resolver)
          Map all the classes that the resolver resolver to the resolver.
 List<IResolvable> getResolvers(Class<?> clazz)
          Gets the resolvers that match the given class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Resolver

public Resolver()
Method Detail

addResolver

public void addResolver(IResolvable resolver)
Map all the classes that the resolver resolver to the resolver.

Parameters:
resolver - the resolver.
See Also:
IResolvable.getResolvableClasses()

getResolvers

public List<IResolvable> getResolvers(Class<?> clazz)
Gets the resolvers that match the given class.

Parameters:
clazz - the class that should be resolved using the resolvers.
Returns:
the list of Resolvers that can resolve objects of type clazz