public class ReconValueSet
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map |
attributeNames
Maps attribute names to indexes in
values |
protected boolean |
isDataSet1
true when this is for data set1, false if this is for data set2
|
protected java.lang.String |
objectName
the object name
|
protected int |
uniqueIdIndex
the index of the mandatory attribute that holds the unique numerical ID
of the object
|
protected java.util.List |
values
the attribute values
|
| Constructor and Description |
|---|
ReconValueSet(boolean isDataSet1,
DataSet dataSet) |
ReconValueSet(boolean isDataSet1,
int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(java.lang.String attributeName)
Add an attribute definition (for all contained attributes)
|
ReconValue |
addValue(java.lang.Object[] values)
Assign attribute values to the object
|
ReconValue |
addValue(java.lang.Object[] values,
java.lang.Object[] units)
Assign attribute values and their units to the object
|
ReconValue |
addValue(ReconValue valueContainer)
Attach an existing attribute values object to the set
|
void |
clearValues()
Reset all value data, without touching the atribute definition
|
int |
getAttributeCount() |
DataSet |
getDataSet()
Returns the embedded copy of the DataSet object.
|
int |
getIndexOfAttribute(java.lang.String attributeName) |
java.lang.String |
getObjectName() |
java.util.List |
getShallowCopyOValuesContainer() |
int |
getUniqueIDIndex() |
ReconValue |
getValue(int index)
Access to an object instance within the set
|
int |
getValueCount() |
boolean |
isDataSet1() |
java.util.Iterator |
iterator() |
void |
setObjectName(java.lang.String objectName) |
protected java.util.Map attributeNames
valuesprotected java.util.List values
protected boolean isDataSet1
protected int uniqueIdIndex
protected java.lang.String objectName
public ReconValueSet(boolean isDataSet1,
DataSet dataSet)
isDataSet1 - public ReconValueSet(boolean isDataSet1,
int initialCapacity)
initialCapacity - isDataSet1 - public void setObjectName(java.lang.String objectName)
objectName - The objectName to set.public java.lang.String getObjectName()
public boolean isDataSet1()
public int getUniqueIDIndex()
public int getAttributeCount()
public int getIndexOfAttribute(java.lang.String attributeName)
attributeName - IllegalArgumentException - if attributeName
is nullNoSuchElementException - if attributeName
is not foundpublic ReconValue getValue(int index)
index - public int getValueCount()
public void addAttribute(java.lang.String attributeName)
attributeName - the attribute name to be addedIllegalArgumentException - if the attribute is added
after there are some objects in the containerpublic void clearValues()
public ReconValue addValue(java.lang.Object[] values)
values - an array of values that are copied to the new objectIllegalArgumentException - if values
contains a different number of objects than the object has
attributespublic ReconValue addValue(java.lang.Object[] values, java.lang.Object[] units)
values - an array of values that are copied to the new objectvalues - an array of units that are copied to the new objectIllegalArgumentException - if values or
units contains a different number of objects
than the object has attributespublic ReconValue addValue(ReconValue valueContainer)
valueContainer - an existing attribute values object to the set. The
valueContainer object must have its name properly
setIllegalArgumentException - if valueContainer
is null or has a different namepublic java.util.List getShallowCopyOValuesContainer()
public java.util.Iterator iterator()
public DataSet getDataSet()