public class StructureMembers.Member
extends java.lang.Object
Constructor and Description |
---|
Member(java.lang.String name,
java.lang.String desc,
java.lang.String units,
DataType dtype,
int[] shape) |
Member(StructureMembers.Member from) |
Modifier and Type | Method and Description |
---|---|
Array |
getDataArray()
Get the data array, if any.
|
java.lang.Object |
getDataObject()
Get an opaque data object, for use behind the scenes.
|
int |
getDataParam()
Get the data parameter value, for use behind the scenes.
|
DataType |
getDataType()
Get the DataType.
|
java.lang.String |
getDescription()
Get the description, if any.
|
java.lang.String |
getFullName() |
java.lang.String |
getFullNameEscaped() |
java.lang.String |
getName()
Get the short name.
|
int[] |
getShape()
Get the array shape.
|
int |
getSize()
Get the total number of elements.
|
int |
getSizeBytes()
Get the total size in bytes.
|
StructureMembers |
getStructureMembers() |
java.lang.String |
getUnitsString()
Get the units string, if any.
|
boolean |
isScalar()
Is this a scalar (size == 1).
|
boolean |
isVariableLength() |
void |
setDataArray(Array data)
Set the data array.
|
void |
setDataObject(java.lang.Object o)
Set an opaque data object, for use behind the scenes.
|
void |
setDataParam(int dataParam)
Set the data parameter value, for use behind the scenes.
|
void |
setShape(int[] shape) |
void |
setStructureMembers(StructureMembers members) |
void |
setVariableInfo(java.lang.String vname,
java.lang.String desc,
java.lang.String unitString,
DataType dtype) |
void |
showInternal(java.util.Formatter f,
Indent indent) |
java.lang.String |
toString() |
public Member(java.lang.String name, java.lang.String desc, java.lang.String units, DataType dtype, int[] shape)
public Member(StructureMembers.Member from)
public void setStructureMembers(StructureMembers members)
public StructureMembers getStructureMembers()
public void setShape(int[] shape)
public java.lang.String getName()
public java.lang.String getFullNameEscaped()
public java.lang.String getFullName()
public java.lang.String getUnitsString()
public java.lang.String getDescription()
public DataType getDataType()
public int[] getShape()
public int getSize()
public boolean isVariableLength()
public int getSizeBytes()
public boolean isScalar()
public int getDataParam()
public void setDataParam(int dataParam)
dataParam
- set to this valuepublic Array getDataArray()
public void setDataArray(Array data)
data
- set to this Array. must not be a logical viewpublic java.lang.Object getDataObject()
public void setDataObject(java.lang.Object o)
o
- set to this valuepublic void setVariableInfo(java.lang.String vname, java.lang.String desc, java.lang.String unitString, DataType dtype)
public void showInternal(java.util.Formatter f, Indent indent)
public java.lang.String toString()
toString
in class java.lang.Object