public final class StructureMembers.Member extends Object
Constructor and Description |
---|
Member(String name,
String desc,
String units,
DataType dtype,
int[] shape) |
Member(StructureMembers.Member from) |
Modifier and Type | Method and Description |
---|---|
Array |
getDataArray()
Get the data array, if any.
|
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.
|
String |
getDescription()
Get the description, if any.
|
String |
getFullName() |
String |
getFullNameEscaped() |
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() |
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(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)
If member is type Structure, you must set its constituent members.
|
void |
setVariableInfo(String vname,
String desc,
String unitString,
DataType dtype) |
void |
showInternal(Formatter f,
Indent indent) |
String |
toString() |
public Member(StructureMembers.Member from)
public void setStructureMembers(StructureMembers members)
members
- set to this valueIllegalArgumentException
- if members
is this Member's enclosing class instance.public StructureMembers getStructureMembers()
public void setShape(int[] shape)
public String getName()
public String getFullNameEscaped()
public String getFullName()
public String getUnitsString()
public 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 Object getDataObject()
public void setDataObject(Object o)
o
- set to this valuepublic void setVariableInfo(String vname, String desc, String unitString, DataType dtype)