org.apache.anteater.test.meta
Class AbstractChecker

java.lang.Object
  |
  +--org.apache.anteater.test.meta.AbstractChecker
All Implemented Interfaces:
FeatureChecker
Direct Known Subclasses:
ExistenceChecker, JSSEChecker

public abstract class AbstractChecker
extends Object
implements FeatureChecker

Base class for Anteater FeatureChecker implementations. It provides access to a Properties containing Anteater's feature list.

Version:
$Revision: 1.1 $ $Date: 2002/10/17 10:21:15 $
Author:
Jeff Turner

Field Summary
protected  Properties features
           
 
Constructor Summary
AbstractChecker()
          Constructor.
 
Method Summary
abstract  String checkFeature(Feature f)
          Check whether this Anteater installation has a feature.
abstract  String[] getCheckedFeatures()
          Gets an array of names of features that the implementing FeatureChecker can process.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

features

protected Properties features
Constructor Detail

AbstractChecker

public AbstractChecker()
Constructor. Creates the features object.

Method Detail

getCheckedFeatures

public abstract String[] getCheckedFeatures()
Description copied from interface: FeatureChecker
Gets an array of names of features that the implementing FeatureChecker can process.

Specified by:
getCheckedFeatures in interface FeatureChecker

checkFeature

public abstract String checkFeature(Feature f)
Description copied from interface: FeatureChecker
Check whether this Anteater installation has a feature.

Specified by:
checkFeature in interface FeatureChecker
Parameters:
f - The feature we require.
Returns:
A String error message if the feature is missing, or null if the feature is present.


Ant Functional Tester -- see Project home page for details