Unified Typesetting API M1-20040817

de.inghuimische.uta.qm
Class FeatureList

java.lang.Object
  extended byde.inghuimische.uta.qm.FeatureList

public class FeatureList
extends Object

A list of features most UTA components have to return. Such a list describes the features a component has.

Author:
Christian Ziesemer
See Also:
ReferenceList

Field Summary
protected  Vector features
          Contains the features.
 
Constructor Summary
FeatureList()
           
 
Method Summary
 void addFeature(Feature aFeature)
          Adds a new feature to the list.
 int getSupportLevel(FeatureList aList)
          Returns a level estimating how much of the features of this list exist in aList.
 Iterator iterator()
          Returns an iterator for the list.
 int size()
          Returns the number of features.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

features

protected Vector features
Contains the features.

Constructor Detail

FeatureList

public FeatureList()
Method Detail

addFeature

public void addFeature(Feature aFeature)
Adds a new feature to the list.

Parameters:
aFeature - The feature to add.

getSupportLevel

public int getSupportLevel(FeatureList aList)
Returns a level estimating how much of the features of this list exist in aList.

Note that this method returns all support levels as definied by QualityReport but QualityReport.BASIC_SUPPORT because this is no reference list. Therefore aList may have none, less, just as much or more features as given by this list.

Parameters:
aList - The list a support level is requested for.
Returns:
The support level aList reaches compared with this list.

iterator

public Iterator iterator()
Returns an iterator for the list.

Returns:
An iterator for the list.

size

public int size()
Returns the number of features.

Returns:
The number of features.

Unified Typesetting API M1-20040817


An inghuimische.de project.
Copyright (C) 2004 Christian Ziesemer; See the Mozilla Public License for more details.