Package ucar.ma2
Class StructureMembers.Member
java.lang.Object
ucar.ma2.StructureMembers.Member
- Enclosing class:
- StructureMembers
A member of a StructureData.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the data array, if any.Get an opaque data object, for use behind the scenes.intGet the data parameter value, for use behind the scenes.Get the DataType.Get the description, if any.getName()Get the StructureMembers name.int[]getShape()Get the array shape.intgetSize()Get the total number of elements.intGet the total size in bytes.Get the units string, if any.booleanisScalar()Is this a scalar (size == 1).booleanvoidsetDataArray(Array data) Deprecated.use MemberBuildervoidDeprecated.use MemberBuildervoidsetDataParam(int dataParam) Deprecated.use MemberBuildervoidsetShape(int[] shape) Deprecated.use MemberBuildervoidsetStructureMembers(StructureMembers members) Deprecated.use MemberBuildervoidsetVariableInfo(String vname, String desc, String unitString, DataType dtype) Deprecated.use MemberBuildertoBuilder(boolean wantsData) Turn into a mutable Builder.toString()
-
Constructor Details
-
Member
Deprecated.use MemberBuilder -
Member
Deprecated.use MemberBuilder
-
-
Method Details
-
toBuilder
Turn into a mutable Builder. Can use toBuilder().build() to copy. -
setStructureMembers
Deprecated.use MemberBuilderIf member is type Structure, you must set its constituent members.- Parameters:
members- set to this value- Throws:
IllegalArgumentException- ifmembersis this Member's enclosing class instance.
-
getStructureMembers
-
setShape
Deprecated.use MemberBuilder -
getName
Get the StructureMembers name. -
getFullNameEscaped
-
getFullName
-
getUnitsString
Get the units string, if any.- Returns:
- the units string, or null if none.
-
getDescription
Get the description, if any.- Returns:
- the description, or null if none.
-
getDataType
Get the DataType.- Returns:
- the DataType.
-
getShape
public int[] getShape()Get the array shape. This does not have to match the VariableSimpleIF.- Returns:
- the array shape.
-
getSize
public int getSize()Get the total number of elements. This does not have to match the VariableSimpleIF.- Returns:
- the total number of elements.
-
isVariableLength
public boolean isVariableLength() -
getSizeBytes
public int getSizeBytes()Get the total size in bytes. This does not have to match the VariableSimpleIF. Note that this will not be correct when containing a member of type Sequence, or String, since those are variable length. In that case- Returns:
- total size in bytes
-
isScalar
public boolean isScalar()Is this a scalar (size == 1). This does not have to match the VariableSimpleIF.- Returns:
- if this is a scalar
-
equals
-
getDataParam
public int getDataParam()Get the data parameter value, for use behind the scenes.- Returns:
- data parameter value
-
setDataParam
Deprecated.use MemberBuilderSet the data parameter value, for use behind the scenes.- Parameters:
dataParam- set to this value
-
getDataArray
Get the data array, if any. Used for implementation, DO NOT USE DIRECTLY!- Returns:
- data object, may be null
-
setDataArray
Deprecated.use MemberBuilderSet the data array. Used for implementation, DO NOT USE DIRECTLY!- Parameters:
data- set to this Array. must not be a logical view
-
getDataObject
Get an opaque data object, for use behind the scenes. May be null- Returns:
- data object, may be null
-
setDataObject
Deprecated.use MemberBuilderSet an opaque data object, for use behind the scenes.- Parameters:
o- set to this value
-
setVariableInfo
@Deprecated public void setVariableInfo(String vname, String desc, String unitString, DataType dtype) Deprecated.use MemberBuilder -
toString
-