CSC407/ECE450 Assignment 1b Sample Solution

plan.dom
Class Release

java.lang.Object
  |
  +--plan.dom.DefaultFeatureListImplementation
        |
        +--plan.dom.Release
All Implemented Interfaces:
FeatureList

public class Release
extends DefaultFeatureListImplementation
implements FeatureList

Represents a possible release of a software product.


Field Summary
private  java.lang.String designator
           
 
Fields inherited from class plan.dom.DefaultFeatureListImplementation
features
 
Constructor Summary
Release()
           
 
Method Summary
 java.lang.String getDesignator()
           
 java.lang.String getLabel()
          The FeatureList label is the same as the release designator.
 void setDesignator(java.lang.String designator)
           
 void subtract(Release other)
          Removes features from this release that appear in the other release.
 
Methods inherited from class plan.dom.DefaultFeatureListImplementation
addFeature, featureIterator, numFeatures, sortFeatures, subtract, totalSizingOfFeatures
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 
Methods inherited from interface plan.dom.FeatureList
featureIterator, numFeatures, totalSizingOfFeatures
 

Field Detail

designator

private java.lang.String designator
Constructor Detail

Release

public Release()
Method Detail

subtract

public void subtract(Release other)
Removes features from this release that appear in the other release.
Parameters:
other - the release containing features to be removed

getDesignator

public java.lang.String getDesignator()

setDesignator

public void setDesignator(java.lang.String designator)

getLabel

public java.lang.String getLabel()
The FeatureList label is the same as the release designator.
Specified by:
getLabel in interface FeatureList
Following copied from interface: plan.dom.FeatureList
Returns:
the descriptive (short) label

CSC407/ECE450 Assignment 1b Sample Solution