Package ucar.nc2

Class CDMNode

java.lang.Object
ucar.nc2.CDMNode
Direct Known Subclasses:
Attribute, Dimension, EnumTypedef, Group, Variable

@Deprecated public abstract class CDMNode extends Object
Deprecated.
Will move to Dap4 module in version 6.
Define a superclass for all the CDM node classes: Group, Dimension, etc. Define the sort of the node CDMSort so that we can 1. do true switching on node type 2. avoid use of instanceof 3. Use container classes that have more than one kind of node

Also move various common fields and methods to here.

  • Constructor Details

    • CDMNode

      public CDMNode(String name)
      Deprecated.
  • Method Details

    • getSort

      @Deprecated public CDMSort getSort()
      Deprecated.
      do not use
    • setSort

      @Deprecated public void setSort(CDMSort sort)
      Deprecated.
      do not use
    • getShortName

      public String getShortName()
      Deprecated.
      Get the short name of this Variable. The name is unique within its parent group.
    • setShortName

      @Deprecated public void setShortName(String name)
      Deprecated.
      Do not use.
      Set the short name of this Variable. The name is unique within its parent group.
      Parameters:
      name - new short name
    • getParentGroup

      @Deprecated public Group getParentGroup()
      Deprecated.
      Do not use for Dimension or Attribute
      Get its parent Group, or null if its the root group.
      Returns:
      parent Group
    • getGroup

      @Deprecated public Group getGroup()
      Deprecated.
      Do not use.
      Alias for getParentGroup
      Returns:
      parent Group
    • setParentGroup

      @Deprecated public void setParentGroup(Group parent)
      Deprecated.
      Do not use.
      Set the parent Group
      Parameters:
      parent - The new parent group
    • getParentStructure

      @Deprecated public Structure getParentStructure()
      Deprecated.
      Do not use.
      Get its parent structure, or null if not in structure
      Returns:
      parent structure
    • setParentStructure

      @Deprecated public void setParentStructure(Structure parent)
      Deprecated.
      Do not use.
      Set the parent Structure
      Parameters:
      parent - The new parent structure
    • isMemberOfStructure

      @Deprecated public boolean isMemberOfStructure()
      Deprecated.
      Do not use.
      Test for presence of parent Structure
      Returns:
      true iff struct != null
    • getImmutable

      @Deprecated public boolean getImmutable()
      Deprecated.
      Do not use.
      Get immutable flag As a rule, subclasses will access directly
      Returns:
      Immutable flag
    • setImmutable

      @Deprecated public CDMNode setImmutable()
      Deprecated.
      Do not use.
      Set the immutable flag to true. Once set, cannot be unset
    • getDODSName

      @Deprecated public String getDODSName()
      Deprecated.
      Do not use.
      Get the dodsname
      Returns:
      the original names from the DDS or DAS; if null, then return the short name
    • setDODSName

      @Deprecated public void setDODSName(String name)
      Deprecated.
      Do not use.
      Store the original dods name
      Parameters:
      name - The original name from the DDS/DAS
    • getFullName

      @Deprecated public String getFullName()
      Deprecated.
      use NetcdfFiles.makeFullName(*)
      Get the Full name of this object. Certain characters are backslash escaped (see NetcdfFile)
      Returns:
      full name with backslash escapes
    • getFullNameEscaped

      public String getFullNameEscaped()
      Deprecated.
      use getFullName() when it exists in ver6.
      Alias for getFullName
      Returns:
      full name with backslash escapes
    • getName

      @Deprecated public String getName()
      Deprecated.
      getName is deprecated because, as the code below shows, it has no consistent meaning. Sometimes it returns the short name, sometimes it returns the full name.
    • localhash

      public int localhash()
      Deprecated.
      do not use
    • unwrap

      @Deprecated public static CDMNode unwrap(CDMNode node)
      Deprecated.
      Do not use.
      NetcdfDataset can end up wrapping a variable in multiple wrapping classes (e.g. VariableDS). Goal of this procedure is to get down to the lowest level Variable instance
      Parameters:
      node - possibly wrapped ode
      Returns:
      the lowest level node instance
    • annotation

      @Deprecated public Object annotation(Object id)
      Deprecated.
      do not use
    • annotate

      public Object annotate(Object id, Object value)
      Deprecated.
      do not use