Package ucar.ma2

Class StructureMembers.Member

java.lang.Object
ucar.ma2.StructureMembers.Member
Enclosing class:
StructureMembers

public static final class StructureMembers.Member extends Object
A member of a StructureData.
  • Method Details

    • toBuilder

      public StructureMembers.MemberBuilder toBuilder(boolean wantsData)
      Turn into a mutable Builder. Can use toBuilder().build() to copy.
    • getStructureMembers

      public StructureMembers getStructureMembers()
    • getName

      public String getName()
      Get the StructureMembers name.
    • getFullNameEscaped

      public String getFullNameEscaped()
    • getFullName

      public String getFullName()
    • getUnitsString

      public String getUnitsString()
      Get the units string, if any.
      Returns:
      the units string, or null if none.
    • getDescription

      public String getDescription()
      Get the description, if any.
      Returns:
      the description, or null if none.
    • getDataType

      public DataType 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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • getDataParam

      public int getDataParam()
      Get the data parameter value, for use behind the scenes.
      Returns:
      data parameter value
    • getDataArray

      public Array getDataArray()
      Get the data array, if any. Used for implementation, DO NOT USE DIRECTLY!
      Returns:
      data object, may be null
    • getDataObject

      public Object getDataObject()
      Get an opaque data object, for use behind the scenes. May be null
      Returns:
      data object, may be null
    • toString

      public String toString()
      Overrides:
      toString in class Object