Class ArrayNodeData
- java.lang.Object
-
- idare.imagenode.Interfaces.DataSets.NodeData
-
- idare.imagenode.Data.BasicDataTypes.ArrayData.ArrayNodeData
-
- All Implemented Interfaces:
Serializable
public class ArrayNodeData extends NodeData
NodeData that can be used for anyArrayDataSet- Author:
- Thomas Pfau
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ArrayNodeData(DataSet origin)Basic constructor using the dataset this is originating from
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeValuegetData(int position)SinceArrayDataSets have ordered rows of data, this function can be used to get the position-th item in this data.intgetValueCount()Return the number of Elements for one set of Data e.g.booleanisempty()Check whether this Data is empty (i.e.booleanisValueSet(int pos)Check whether the element at a specific position is set.voidsetData(Vector<NodeValue> Data)Set the Data of thisArrayNodeData.
-
-
-
Constructor Detail
-
ArrayNodeData
public ArrayNodeData(DataSet origin)
Basic constructor using the dataset this is originating from- Parameters:
origin- TheDataSetthisArrayNodeDatabelongs to,
-
-
Method Detail
-
getData
public NodeValue getData(int position)
SinceArrayDataSets have ordered rows of data, this function can be used to get the position-th item in this data.
-
setData
public void setData(Vector<NodeValue> Data)
Set the Data of thisArrayNodeData.- Parameters:
Data- The data To set.
-
getValueCount
public int getValueCount()
Return the number of Elements for one set of Data e.g. number of items (including empty items) in anArrayDataSet- Returns:
- the number of values stored in this
ArrayNodeData
-
isValueSet
public boolean isValueSet(int pos)
Check whether the element at a specific position is set.- Parameters:
pos- the position to check- Returns:
- true, if the item is not
null
-
-