@Deprecated public abstract class CDMNode extends Object
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.
Modifier and Type | Method and Description |
---|---|
Object |
annotate(Object id,
Object value)
Deprecated.
|
Object |
annotation(Object id)
Deprecated.
|
String |
getDODSName()
Deprecated.
Get the dodsname
|
String |
getFullName()
Deprecated.
Get the Full name of this object.
|
String |
getFullNameEscaped()
Deprecated.
Alias for getFullName
|
Group |
getGroup()
Deprecated.
Do not use.
|
boolean |
getImmutable()
Deprecated.
Get immutable flag
As a rule, subclasses will access directly
|
String |
getName()
Deprecated.
Replaced by
getShortName() and getFullName() |
Group |
getParentGroup()
Deprecated.
Get its parent Group, or null if its the root group.
|
Structure |
getParentStructure()
Deprecated.
Get its parent structure, or null if not in structure
|
String |
getShortName()
Deprecated.
Get the short name of this Variable.
|
CDMSort |
getSort()
Deprecated.
|
boolean |
isMemberOfStructure()
Deprecated.
Test for presence of parent Structure
|
int |
localhash()
Deprecated.
|
void |
setDODSName(String name)
Deprecated.
Store the original dods name
|
CDMNode |
setImmutable()
Deprecated.
Set the immutable flag to true.
|
void |
setParentGroup(Group parent)
Deprecated.
Do not use.
|
void |
setParentStructure(Structure parent)
Deprecated.
Set the parent Structure
|
void |
setShortName(String name)
Deprecated.
Set the short name of this Variable.
|
void |
setSort(CDMSort sort)
Deprecated.
|
static CDMNode |
unwrap(CDMNode node)
Deprecated.
NetcdfDataset can end up wrapping a variable
in multiple wrapping classes (e.g.
|
public CDMNode(String name)
public CDMSort getSort()
public void setSort(CDMSort sort)
public String getShortName()
public void setShortName(String name)
name
- new short namepublic Group getParentGroup()
@Deprecated public Group getGroup()
public void setParentGroup(Group parent)
parent
- The new parent grouppublic Structure getParentStructure()
public void setParentStructure(Structure parent)
parent
- The new parent structurepublic boolean isMemberOfStructure()
public boolean getImmutable()
public CDMNode setImmutable()
public String getDODSName()
public void setDODSName(String name)
name
- The original name from the DDS/DASpublic String getFullName()
public String getFullNameEscaped()
@Deprecated public String getName()
getShortName()
and getFullName()
public int localhash()
public static CDMNode unwrap(CDMNode node)
node
- possibly wrapped ode