IDataInfo
, java.io.Serializable
DataDouble.DataInfoDouble
, DataDoubleArray.DataInfoDoubleArray
, DataDoubleBDArray.DataInfoDoubleBDArray
, DataGroup.DataInfoGroup
, DataTensor.DataInfoTensor
, DataVector.DataInfoVector
public abstract class DataInfo extends java.lang.Object implements java.io.Serializable, IDataInfo
A DataInfo instance is completely immutable.
IData
,
Serialized FormModifier | Constructor | Description |
---|---|---|
protected |
DataInfo(java.lang.String label,
Dimension dimension) |
Constructs new instance with descriptive label and dimension.
|
Modifier and Type | Method | Description |
---|---|---|
void |
addTag(DataTag newTag) |
Adds the tag
|
void |
addTags(DataTag[] newTags) |
Convenience method to add all of the given tags.
|
void |
clearTags() |
Removes all tags.
|
Dimension |
getDimension() |
|
java.lang.String |
getLabel() |
|
DataTag[] |
getTags() |
Returns the array of tags held by this DataInfo instance.
|
java.lang.String |
toString() |
Returns "label (dimension)", where label and dimension are the values
held by this instance.
|
getFactory, getLength, makeData
protected DataInfo(java.lang.String label, Dimension dimension)
label
- descriptive label for the datadimension
- physical dimensions (e.g., length, force) of the datapublic Dimension getDimension()
getDimension
in interface IDataInfo
public java.lang.String getLabel()
public java.lang.String toString()
public void addTags(DataTag[] newTags)