org.apache.anteater.test.meta
Class Uses

java.lang.Object
  |
  +--org.apache.tools.ant.ProjectComponent
        |
        +--org.apache.tools.ant.types.DataType
              |
              +--org.apache.anteater.test.BaseDataType
                    |
                    +--org.apache.anteater.test.meta.Uses
All Implemented Interfaces:
Groupable

public class Uses
extends BaseDataType

Collects a set of Features needed by a script.

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

Field Summary
protected  List reqFeatures
          A List of Features this uses tag specifies.
 
Fields inherited from class org.apache.anteater.test.BaseDataType
debug, debugWasSet
 
Fields inherited from class org.apache.tools.ant.types.DataType
checked, description, ref
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
Uses()
           
 
Method Summary
 void addFeature(Feature f)
          Add a <feature> child element.
 List getFeatures()
          Returns a List of Features that this Uses tag specifies.
 void setGroup(Group group)
          Sets the group that this task belongs to.
 void setGroup(String group)
          Sets the group that this task belongs to.
 void setVersion(String version)
          Set the version that the script is written for.
 
Methods inherited from class org.apache.anteater.test.BaseDataType
debug, getDataTypeName, getDebug, getGroup, getRef, print, println, setDebug, setRefid
 
Methods inherited from class org.apache.tools.ant.types.DataType
circularReference, dieOnCircularReference, getCheckedRef, getDescription, isReference, noChildrenAllowed, setDescription, tooManyAttributes
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, log, log, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reqFeatures

protected List reqFeatures
A List of Features this uses tag specifies.

Constructor Detail

Uses

public Uses()
Method Detail

setVersion

public void setVersion(String version)
Set the version that the script is written for. For example, '1' means 'all 1.x.x-compatible versions'.


addFeature

public void addFeature(Feature f)
Add a <feature> child element.


getFeatures

public List getFeatures()
Returns a List of Features that this Uses tag specifies.


setGroup

public void setGroup(String group)
Description copied from class: BaseDataType
Sets the group that this task belongs to.

Specified by:
setGroup in interface Groupable
Overrides:
setGroup in class BaseDataType
Parameters:
group - String id of an existing group.

setGroup

public void setGroup(Group group)
Description copied from class: BaseDataType
Sets the group that this task belongs to.

Specified by:
setGroup in interface Groupable
Overrides:
setGroup in class BaseDataType
Parameters:
group - Group object to add this task to.


Ant Functional Tester -- see Project home page for details