public class FeatureSet
extends java.lang.Object
A convience class that holds a IData for the java collection on the LWRComponent. This is an intermediary class designed to hold the list of LWRData for the same types of features. The getFeature() operation on LWRData should return the same value as the getName() operation on this class.
Constructor and Description |
---|
FeatureSet(java.lang.String feature)
The constructor.
|
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.
|
boolean |
equals(java.lang.Object otherObject)
Overrides the equals operation to check the attributes on this object
with another object of the same type.
|
java.util.ArrayList<IData> |
getIData()
Returns the IDatas associated with the FeatureSet.
|
java.lang.String |
getName()
Returns the name of the feature.
|
int |
hashCode()
Returns the hashCode of the object.
|
public FeatureSet(java.lang.String feature)
The constructor. 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
- public java.lang.String getName()
Returns the name of the feature.
public java.util.ArrayList<IData> getIData()
Returns the IDatas associated with the FeatureSet.
The returned IData list.
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. Returns true if operation was successful, false otherwise.
iData
- The data associated with the feature set.
public boolean equals(java.lang.Object otherObject)
Overrides the equals operation to check the attributes on this object with another object of the same type. Returns true if the objects are equal. False otherwise.
equals
in class java.lang.Object
otherObject
- The object to be compared.
True if otherObject is equal. False otherwise.
public int hashCode()
Returns the hashCode of the object.
hashCode
in class java.lang.Object
The hash of the object.
public void copy(FeatureSet otherObject)
Deep copies the contents of the object.
otherObject
- The object to be copied.
public java.lang.Object clone()
Deep copies and returns a newly instantiated object.
clone
in class java.lang.Object
The newly instantiated copied object.