abbot.script
Interface Resolver

All Known Implementing Classes:
Fixture, 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

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


addComponent

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


addComponentReference

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


getComponentReferences

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


getComponentReference

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


getHierarchy

Hierarchy getHierarchy()
Get Hierarchy used by this Resolver.


getContextClassLoader

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


getDirectory

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


setProperty

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


getProperty

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


getContext

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



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

SourceForge