abbot
Interface Resolver

All Known Implementing Classes:
ScriptEditor, Script

public interface Resolver

Interface to provide a general context in which tests are run. Includes ComponentReferences, properties, and a filesystem location.


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.
 File getDirectory()
          Provide a working directory context for relative pathnames.
 String getProperty(String name)
          Provide retrieval of values from temporary storage.
 String getUniqueID(ComponentReference ref)
          Derive a unique identifier for the given reference.
 void setProperty(String name, String value)
          Provide temporary storage of values.
 

Method Detail

getComponentReference

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

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.

getUniqueID

public String getUniqueID(ComponentReference ref)
Derive a unique identifier for the given reference.

getComponentReferences

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

getDirectory

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

setProperty

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

getProperty

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


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

SourceForge