edu.indiana.iucbrf.feature.featurespec
Class FeatureSpecMap

java.lang.Object
  extended by edu.indiana.iucbrf.feature.featurespec.AbstractFeatureSpecCollection
      extended by edu.indiana.iucbrf.feature.featurespec.FeatureSpecMap
All Implemented Interfaces:
FeatureSpecCollection, SwingRepresentable, XMLRepresentable, java.io.Serializable

public class FeatureSpecMap
extends AbstractFeatureSpecCollection

A FeatureSpecCollection that holds its FeatureSpecs in a LinkedHashMap.

See Also:
Serialized Form

Field Summary
protected  java.util.LinkedHashMap featureSpecs
           
 
Fields inherited from class edu.indiana.iucbrf.feature.featurespec.AbstractFeatureSpecCollection
title
 
Fields inherited from interface edu.indiana.util.swing.SwingRepresentable
TITLE_FONT
 
Constructor Summary
FeatureSpecMap()
          Creates an empty FeatureSpecMap.
FeatureSpecMap(FeatureKey[] featureKeys, java.lang.String[] featureDescriptions, java.lang.String[] featureTypeNames)
          Creates a new instance of FeatureSpecMap, which contains FeatureSpecs
FeatureSpecMap(FeatureKey[] featureKeys, java.lang.String[] featureDescriptions, java.lang.String[] questionTexts, java.lang.String[] featureTypeNames, CCBRDomain domain)
          Creates a new instance of FeatureSpecMap, which contains CCBRFeatureSpecs
FeatureSpecMap(int initialCapacity)
           
 
Method Summary
 void addFeatureSpec(FeatureSpec featureSpec)
           
 FeatureSpec getFeatureSpec(FeatureKey key)
           
 int getFeatureSpecCount()
           
 java.util.Iterator orderedAllEntryIterator()
           
 FeatureKey[] orderedAllKeyArray()
           
 java.util.Iterator orderedAllKeyIterator()
           
 java.util.Iterator orderedAllSpecIterator()
           
 void removeFeatureSpec(FeatureKey key)
           
 
Methods inherited from class edu.indiana.iucbrf.feature.featurespec.AbstractFeatureSpecCollection
equals, fromXML, getTitle, isFullyCompliant, isPartiallyCompliant, putExtraData, removeFeatureSpec, setDescription, setFormat, setIsPrintable, setIsSubFeature, setName, setStandardConstructor, setStandardConstructor, setStandardConstructor, setTitle, setType, toString, toSwing, toXML
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

featureSpecs

protected java.util.LinkedHashMap featureSpecs
Constructor Detail

FeatureSpecMap

public FeatureSpecMap()
Creates an empty FeatureSpecMap.


FeatureSpecMap

public FeatureSpecMap(int initialCapacity)

FeatureSpecMap

public FeatureSpecMap(FeatureKey[] featureKeys,
                      java.lang.String[] featureDescriptions,
                      java.lang.String[] featureTypeNames)
Creates a new instance of FeatureSpecMap, which contains FeatureSpecs


FeatureSpecMap

public FeatureSpecMap(FeatureKey[] featureKeys,
                      java.lang.String[] featureDescriptions,
                      java.lang.String[] questionTexts,
                      java.lang.String[] featureTypeNames,
                      CCBRDomain domain)
Creates a new instance of FeatureSpecMap, which contains CCBRFeatureSpecs

Method Detail

getFeatureSpecCount

public int getFeatureSpecCount()

orderedAllKeyIterator

public java.util.Iterator orderedAllKeyIterator()

orderedAllEntryIterator

public java.util.Iterator orderedAllEntryIterator()

orderedAllSpecIterator

public java.util.Iterator orderedAllSpecIterator()

getFeatureSpec

public FeatureSpec getFeatureSpec(FeatureKey key)

addFeatureSpec

public void addFeatureSpec(FeatureSpec featureSpec)

removeFeatureSpec

public void removeFeatureSpec(FeatureKey key)

orderedAllKeyArray

public FeatureKey[] orderedAllKeyArray()