edu.indiana.iucbrf.feature.featurespec
Class FeatureSpecMap
java.lang.Object
edu.indiana.iucbrf.feature.featurespec.AbstractFeatureSpecCollection
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
|
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)
|
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 |
featureSpecs
protected java.util.LinkedHashMap featureSpecs
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
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()