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 nodeCDMSort
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 nodeAlso move various common fields and methods to here.
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<Object,Object>
annotations
Deprecated.protected String
dodsname
Deprecated.protected Group
group
Deprecated.protected boolean
immutable
Deprecated.protected Structure
parentstruct
Deprecated.protected String
shortName
Deprecated.protected CDMSort
sort
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Object
annotate(Object id, Object value)
Deprecated.do not useObject
annotation(Object id)
Deprecated.do not useString
getDODSName()
Deprecated.Do not use.String
getFullName()
Deprecated.use NetcdfFiles.makeFullName(*)String
getFullNameEscaped()
Deprecated.use getFullName() when it exists in ver6.Group
getGroup()
Deprecated.Do not use.boolean
getImmutable()
Deprecated.Do not use.String
getName()
Deprecated.Replaced bygetShortName()
andgetFullName()
Group
getParentGroup()
Deprecated.Do not use for Dimension or AttributeStructure
getParentStructure()
Deprecated.Do not use.String
getShortName()
Deprecated.Get the short name of this Variable.CDMSort
getSort()
Deprecated.do not useboolean
isMemberOfStructure()
Deprecated.Do not use.int
localhash()
Deprecated.do not usevoid
setDODSName(String name)
Deprecated.Do not use.CDMNode
setImmutable()
Deprecated.Do not use.void
setParentGroup(Group parent)
Deprecated.Do not use.void
setParentStructure(Structure parent)
Deprecated.Do not use.void
setShortName(String name)
Deprecated.Do not use.void
setSort(CDMSort sort)
Deprecated.do not usestatic CDMNode
unwrap(CDMNode node)
Deprecated.Do not use.
-
-
-
Constructor Detail
-
CDMNode
protected CDMNode()
Deprecated.
-
CDMNode
public CDMNode(String name)
Deprecated.
-
-
Method Detail
-
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 AttributeGet 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.Replaced bygetShortName()
andgetFullName()
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
-
-