Package ucar.nc2.dods

Class DODSAttribute


  • public class DODSAttribute
    extends Attribute
    Adapter for dods.dap.Attribute into a ucar.nc2.Attribute. Byte attributes are widened to short because DODS has Bytes as unsigned, but in Java they are signed.
    See Also:
    Attribute
    • Constructor Detail

      • DODSAttribute

        public DODSAttribute​(String dodsName,
                             Attribute att)
        constructor: adapter around dods.dap.Attribute
        Parameters:
        dodsName - the attribute name
        att - the dods attribute
      • DODSAttribute

        protected DODSAttribute​(String dodsName,
                                String val)
    • Method Detail

      • getDODSName

        public String getDODSName()
        Description copied from class: CDMNode
        Get the dodsname
        Overrides:
        getDODSName in class CDMNode
        Returns:
        the original names from the DDS or DAS; if null, then return the short name
      • setDODSName

        public void setDODSName​(String name)
        Description copied from class: CDMNode
        Store the original dods name
        Overrides:
        setDODSName in class CDMNode
        Parameters:
        name - The original name from the DDS/DAS
      • resetShortName

        public void resetShortName​(String name)