abbot.script
Interface Resolver

All Known Implementing Classes:
Script, ScriptEditor

public interface Resolver

Interface to provide a general context in which tests are run. Includes ComponentReferences, current gui hierarchy, properties, and a working directory.


Method Summary
 ComponentReference addComponent(Component comp)
          Add a new component to the existing collection.
 void addComponentReference(ComponentReference ref)
          Add a new component reference to the existing collection.
 ComponentReference getComponentReference(Component comp)
          Return the existing reference for the given component, or null if none exists.
 ComponentReference getComponentReference(String refid)
          Return the ComponentReference matching the given id, or null if none exists.
 Collection getComponentReferences()
          Returns a collection of all the existing references.
 String getContext(Step step)
          Provide a human-readable string that describes the given step's context.
 ClassLoader getContextClassLoader()
          Return the class loader for use in this context.
 File getDirectory()
          Provide a working directory context for relative pathnames.
 Hierarchy getHierarchy()
          Get Hierarchy used by this Resolver.
 Object getProperty(String name)
          Provide retrieval of values from temporary storage.
 void setProperty(String name, Object value)
          Provide temporary storage of String values.
 

Method Detail

getComponentReference

public ComponentReference getComponentReference(Component comp)
Return the existing reference for the given component, or null if none exists.


addComponent

public ComponentReference addComponent(Component comp)
Add a new component to the existing collection.


addComponentReference

public void addComponentReference(ComponentReference ref)
Add a new component reference to the existing collection.


getComponentReferences

public Collection getComponentReferences()
Returns a collection of all the existing references.


getComponentReference

public ComponentReference getComponentReference(String refid)
Return the ComponentReference matching the given id, or null if none exists.


getHierarchy

public Hierarchy getHierarchy()
Get Hierarchy used by this Resolver.


getContextClassLoader

public ClassLoader getContextClassLoader()
Return the class loader for use in this context.


getDirectory

public File getDirectory()
Provide a working directory context for relative pathnames.


setProperty

public void setProperty(String name,
                        Object value)
Provide temporary storage of String values.


getProperty

public Object getProperty(String name)
Provide retrieval of values from temporary storage.


getContext

public String getContext(Step step)
Provide a human-readable string that describes the given step's context.



Copyright © 2002-2004 Timothy Wall. All Rights Reserved.
Abbot is hosted on

SourceForge