Package ucar.ma2
Class StructureMembers.Builder
- java.lang.Object
-
- ucar.ma2.StructureMembers.Builder
-
- Enclosing class:
- StructureMembers
public static class StructureMembers.Builder extends Object
A builder for StructureMembers
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StructureMembers.Builder
addMember(int pos, StructureMembers.MemberBuilder m)
StructureMembers.MemberBuilder
addMember(String name, String desc, String units, DataType dtype, int[] shape)
StructureMembers.Builder
addMember(StructureMembers.MemberBuilder m)
StructureMembers.MemberBuilder
addMemberScalar(String name, String desc, String units, DataType dtype, Number val)
Add a Member, creating a scalar DataArray from the val.StructureMembers.MemberBuilder
addMemberString(String name, String desc, String units, String val, int max_len)
Add a Member, creating a CHAR DataArray from the String val.StructureMembers
build()
boolean
hasMember(String memberName)
StructureMembers.Builder
setName(String name)
StructureMembers.Builder
setStructureSize(int structureSize)
-
-
-
Method Detail
-
setName
public StructureMembers.Builder setName(String name)
-
addMember
public StructureMembers.Builder addMember(StructureMembers.MemberBuilder m)
-
addMember
public StructureMembers.Builder addMember(int pos, StructureMembers.MemberBuilder m)
-
addMember
public StructureMembers.MemberBuilder addMember(String name, String desc, String units, DataType dtype, int[] shape)
-
addMemberScalar
public StructureMembers.MemberBuilder addMemberScalar(String name, String desc, String units, DataType dtype, Number val)
Add a Member, creating a scalar DataArray from the val. Use with StructureDataFromMember.
-
addMemberString
public StructureMembers.MemberBuilder addMemberString(String name, String desc, String units, String val, int max_len)
Add a Member, creating a CHAR DataArray from the String val. Use with StructureDataFromMember.
-
hasMember
public boolean hasMember(String memberName)
-
setStructureSize
public StructureMembers.Builder setStructureSize(int structureSize)
-
build
public StructureMembers build()
-
-