org.apache.anteater.test.meta
Class ExistenceChecker
java.lang.Object
|
+--org.apache.anteater.test.meta.AbstractChecker
|
+--org.apache.anteater.test.meta.ExistenceChecker
- All Implemented Interfaces:
- FeatureChecker
- Direct Known Subclasses:
- ValueChecker, VersionChecker
- public class ExistenceChecker
- extends AbstractChecker
A FeatureChecker
that specifies that a certain feature must exist.
The implementation checks for the 'anteater.[feature]' property, and
suggests the user run 'anteater-update' to obtain the feature.
- Version:
- $Revision: 1.1 $ $Date: 2002/10/17 10:21:15 $
- Author:
- Jeff Turner
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExistenceChecker
public ExistenceChecker()
getCheckedFeatures
public 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
- Specified by:
getCheckedFeatures
in class AbstractChecker
checkFeature
public String checkFeature(Feature f)
- Description copied from interface:
FeatureChecker
- Check whether this Anteater installation has a feature.
- Specified by:
checkFeature
in interface FeatureChecker
- Specified by:
checkFeature
in class AbstractChecker
- 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