ucar.nc2.iosp.bufr
Class DataDescriptor

java.lang.Object
  extended by ucar.nc2.iosp.bufr.DataDescriptor

public class DataDescriptor
extends java.lang.Object

Essentially a TableB entry, modified by any relevent TableC operators. TableD has been expanded. Replication gets made into nested DataDesccriptors, which we map to Structures (fixed replication) or Sequences (deferred replication). Most of the processing is done by BufrDataDescriptionSection.convert(). Here we encapsolate the final result, ready to map to the CDM.

Since:
Apr 5, 2008
Author:
caron

Method Summary
 int getBitWidth()
           
 int getByteWidthCDM()
          Get the number of bytes the CDM datatype will take
 short getFxy()
           
 java.lang.String getFxyName()
           
 java.lang.String getName()
           
 int getRefVal()
           
 int getScale()
           
 java.util.List<DataDescriptor> getSubKeys()
           
 int getTotalBits()
           
 int getType()
           
 java.lang.String getUnits()
           
 boolean isLocal()
           
 boolean isOkForVariable()
           
 boolean isVarLength()
           
 java.lang.String toString()
           
static void transferInfo(java.util.List<DataDescriptor> fromList, java.util.List<DataDescriptor> toList)
          Transfer info from the "proto message" to another message with the exact same structure.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getSubKeys

public java.util.List<DataDescriptor> getSubKeys()

isOkForVariable

public boolean isOkForVariable()

isLocal

public boolean isLocal()

getFxyName

public java.lang.String getFxyName()

getFxy

public short getFxy()

getName

public java.lang.String getName()

getType

public int getType()

getScale

public int getScale()

getRefVal

public int getRefVal()

getUnits

public java.lang.String getUnits()

transferInfo

public static void transferInfo(java.util.List<DataDescriptor> fromList,
                                java.util.List<DataDescriptor> toList)
Transfer info from the "proto message" to another message with the exact same structure.

Parameters:
fromList - transfer from here
toList - to here

getBitWidth

public int getBitWidth()

getByteWidthCDM

public int getByteWidthCDM()
Get the number of bytes the CDM datatype will take

Returns:
the number of bytes the CDM datatype will take

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getTotalBits

public int getTotalBits()

isVarLength

public boolean isVarLength()