public class FeatureSet
extends java.lang.Object
A convenience class that holds IData for the Java Collection on the SFRComponent. This is an intermediary class designed to hold the list of SFRData for the same types of features. The getFeature() operation on SFRData should return the same value as the getName() operation on this class.
Constructor and Description |
---|
FeatureSet(java.lang.String feature)
Parameterized constructor specifying the feature type.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addIData(IData iData)
Adds IData to the list within the feature set.
|
java.lang.Object |
clone()
Deep copies and returns a newly instantiated object.
|
void |
copy(FeatureSet otherObject)
Deep copies the contents of the object from another object.
|
boolean |
equals(java.lang.Object otherObject)
Compares the contents of the objects and returns true if they are
identical, otherwise returns false.
|
java.util.ArrayList<IData> |
getData()
Returns all IData associated to the FeatureSet.
|
java.lang.String |
getName()
Returns the name of the feature as a string.
|
int |
hashCode()
Returns the hashcode of the object.
|
public FeatureSet(java.lang.String feature)
Parameterized constructor specifying the feature type. The passed value must be a valid feature set, otherwise it will set the feature name to null and not allow the addition of any IData.
feature
- The name of the feature. If this value is null or empty, data
cannot be added to the set.public java.lang.String getName()
Returns the name of the feature as a string.
public java.util.ArrayList<IData> getData()
Returns all IData associated to the FeatureSet.
public boolean addIData(IData iData)
Adds IData to the list within the feature set. The name of the feature must match the name set on the FeatureSet, otherwise this operation will fail.
iData
- The IData instance to add to the FeatureSet.public boolean equals(java.lang.Object otherObject)
Compares the contents of the objects and returns true if they are identical, otherwise returns false.
equals
in class java.lang.Object
otherObject
- The other object to compare against.public int hashCode()
Returns the hashcode of the object.
hashCode
in class java.lang.Object
public void copy(FeatureSet otherObject)
Deep copies the contents of the object from another object.
otherObject
- The other object to copy the contents of.public java.lang.Object clone()
Deep copies and returns a newly instantiated object.
clone
in class java.lang.Object