Class DataDescriptor


  • public class DataDescriptor
    extends Object
    Essentially a TableB entry, modified by any relevent TableC operators. TableD has been expanded. Replication gets made into nested DataDescriptors, which we map to Structures (fixed replication) or Sequences (deferred replication). Most of the processing is done by DataDescriptorTreeConstructor.convert(). Here we encapsulate the final result, ready to map to the CDM.
    Since:
    Apr 5, 2008
    • Constructor Detail

      • DataDescriptor

        public DataDescriptor​(short fxy,
                              BufrTableLookup lookup)
    • Method Detail

      • isInternationalAlphabetUnit

        public static boolean isInternationalAlphabetUnit​(String unitString)
        Test if unit string indicates that the data are 7-bit coded characters following the International Reference Alphabet (formally known as the International Alphabet No.5 (IA5)) Recommendation/International Standard from the International Telegraph and Telephone Consultative Committee (CCITT) https://www.itu.int/rec/T-REC-T.50/en
        Parameters:
        unitString - unit
        Returns:
        If true, treat the data as 7-bit coded International Reference Alphabet Characters
      • isCodeTableUnit

        public static boolean isCodeTableUnit​(String unitString)
        Test if the unit string indicates that we are dealing with data associated with a code table
        Parameters:
        unitString - unit
        Returns:
        If true, the unit indicates we are working with data associated with a code table
      • isFlagTableUnit

        public static boolean isFlagTableUnit​(String unitString)
        Test if the unit string indicates that we are dealing with data associated with a flag table
        Parameters:
        unitString - unit
        Returns:
        If true, the unit indicates we are working with data associated with a flag table
      • isLocal

        public boolean isLocal()
      • isLocalOverride

        public boolean isLocalOverride()
      • getFxyName

        public String getFxyName()
      • getFxy

        public short getFxy()
      • getName

        public String getName()
      • getSource

        public String getSource()
      • getType

        public int getType()
      • getScale

        public int getScale()
      • getRefVal

        public int getRefVal()
      • getUnits

        public String getUnits()
      • getDesc

        public String getDesc()
      • convert

        public float convert​(long raw)
      • convert

        public static float convert​(long raw,
                                    int scale,
                                    int refVal,
                                    int bitWidth)
      • getBitWidth

        public int getBitWidth()
      • getTotalBits

        public int getTotalBits()
      • isVarLength

        public boolean isVarLength()
      • equals2

        public boolean equals2​(Object o)
      • hashCode2

        public int hashCode2()