public class ReconValueSet
extends java.lang.Object
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) |
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 null
NoSuchElementException
- 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()