org.apache.anteater.test.meta
Class Feature

java.lang.Object
  |
  +--org.apache.anteater.test.meta.Feature

public class Feature
extends Object

Class representing an Anteater feature; either some aspect of Anteater itself (eg version) or an 'optional' feature. For maximum generality, a feature is just a name:value pair, where the value is optional.

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

Field Summary
protected  String name
           
protected  String value
           
 
Constructor Summary
Feature()
           
Feature(String name)
           
Feature(String name, String value)
           
 
Method Summary
 String getName()
           
 String getValue()
           
 void setName(String name)
          Set feature name, eg 'jelly' .
 void setValue(String value)
          Set feature value, eg '1.2.3' .
 String toString()
          String representation of the feature.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected String name

value

protected String value
Constructor Detail

Feature

public Feature()

Feature

public Feature(String name)

Feature

public Feature(String name,
               String value)
Method Detail

setName

public void setName(String name)
Set feature name, eg 'jelly' .


getName

public String getName()
Returns:
Feature name.

setValue

public void setValue(String value)
Set feature value, eg '1.2.3' .


getValue

public String getValue()
Returns:
Feature value.

toString

public String toString()
String representation of the feature.

Overrides:
toString in class Object
Returns:
Either 'name' or 'name = value'


Ant Functional Tester -- see Project home page for details