public static final 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)
Deprecated.
use MemberBuilder
|
Member(StructureMembers.Member from)
Deprecated.
use MemberBuilder
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
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 StructureMembers 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)
Deprecated.
use MemberBuilder
|
void |
setDataObject(java.lang.Object o)
Deprecated.
use MemberBuilder
|
void |
setDataParam(int dataParam)
Deprecated.
use MemberBuilder
|
void |
setShape(int[] shape)
Deprecated.
use MemberBuilder
|
void |
setStructureMembers(StructureMembers members)
Deprecated.
use MemberBuilder
|
void |
setVariableInfo(java.lang.String vname,
java.lang.String desc,
java.lang.String unitString,
DataType dtype)
Deprecated.
use MemberBuilder
|
StructureMembers.MemberBuilder |
toBuilder(boolean wantsData)
Turn into a mutable Builder.
|
java.lang.String |
toString() |
@Deprecated public Member(java.lang.String name, java.lang.String desc, java.lang.String units, DataType dtype, int[] shape)
@Deprecated public Member(StructureMembers.Member from)
public StructureMembers.MemberBuilder toBuilder(boolean wantsData)
@Deprecated public void setStructureMembers(StructureMembers members)
members
- set to this valuejava.lang.IllegalArgumentException
- if members
is this Member's enclosing class instance.public StructureMembers getStructureMembers()
@Deprecated 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 boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int getDataParam()
@Deprecated public void setDataParam(int dataParam)
dataParam
- set to this valuepublic Array getDataArray()
@Deprecated public void setDataArray(Array data)
data
- set to this Array. must not be a logical viewpublic java.lang.Object getDataObject()
@Deprecated public void setDataObject(java.lang.Object o)
o
- set to this value@Deprecated public void setVariableInfo(java.lang.String vname, java.lang.String desc, java.lang.String unitString, DataType dtype)
public java.lang.String toString()
toString
in class java.lang.Object