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 NodeValue
getData(int position)
SinceArrayDataSet
s have ordered rows of data, this function can be used to get the position-th item in this data.int
getValueCount()
Return the number of Elements for one set of Data e.g.boolean
isempty()
Check whether this Data is empty (i.e.boolean
isValueSet(int pos)
Check whether the element at a specific position is set.void
setData(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
- TheDataSet
thisArrayNodeData
belongs to,
-
-
Method Detail
-
getData
public NodeValue getData(int position)
SinceArrayDataSet
s 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
-
-