Package ucar.nc2.dt.radial
Class AbstractRadialAdapter.MyRadialVariableAdapter
- java.lang.Object
-
- ucar.nc2.dt.radial.AbstractRadialAdapter.MyRadialVariableAdapter
-
- All Implemented Interfaces:
Comparable<VariableSimpleIF>,VariableSimpleIF
- Enclosing class:
- AbstractRadialAdapter
public static class AbstractRadialAdapter.MyRadialVariableAdapter extends Object implements VariableSimpleIF
-
-
Constructor Summary
Constructors Constructor Description MyRadialVariableAdapter(String vName, Variable v)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AttributeContainerattributes()Attributes for the variable.intcompareTo(VariableSimpleIF o)Sort by full nameAttributefindAttributeIgnoreCase(String attName)find the attribute for the variable with the given name, ignoring case.List<Attribute>getAttributes()Deprecated.DataTypegetDataType()Variable's data typeStringgetDescription()description of the VariableList<Dimension>getDimensions()Dimension List.StringgetFullName()full, backslash escaped name of the data VariableStringgetInfo()StringgetName()Name of the data Variable.intgetRank()Variable rankint[]getShape()Variable shapeStringgetShortName()short name of the data VariableStringgetUnitsString()Units of the Variable.StringtoString()
-
-
-
Field Detail
-
name
protected String name
-
-
Method Detail
-
compareTo
public int compareTo(VariableSimpleIF o)
Sort by full name- Specified by:
compareToin interfaceComparable<VariableSimpleIF>
-
getName
public String getName()
Description copied from interface:VariableSimpleIFName of the data Variable. Not that this is technically ambiguous v-a-v short or full name; however, since this is a Variable interface, one must assume that it is intended to be getFullName().- Specified by:
getNamein interfaceVariableSimpleIF- Returns:
- name of the data Variable
-
getFullName
public String getFullName()
Description copied from interface:VariableSimpleIFfull, backslash escaped name of the data Variable- Specified by:
getFullNamein interfaceVariableSimpleIF- Returns:
- full, backslash escaped name of the data Variable
-
getShortName
public String getShortName()
Description copied from interface:VariableSimpleIFshort name of the data Variable- Specified by:
getShortNamein interfaceVariableSimpleIF- Returns:
- short name of the data Variable
-
getDataType
public DataType getDataType()
Description copied from interface:VariableSimpleIFVariable's data type- Specified by:
getDataTypein interfaceVariableSimpleIF- Returns:
- Variable's data type
-
getDescription
public String getDescription()
Description copied from interface:VariableSimpleIFdescription of the Variable- Specified by:
getDescriptionin interfaceVariableSimpleIF- Returns:
- description of the Variable, or null if none.
-
getInfo
public String getInfo()
-
getUnitsString
public String getUnitsString()
Description copied from interface:VariableSimpleIFUnits of the Variable. These should be udunits compatible if possible- Specified by:
getUnitsStringin interfaceVariableSimpleIF- Returns:
- Units of the Variable, or null if none.
-
getRank
public int getRank()
Description copied from interface:VariableSimpleIFVariable rank- Specified by:
getRankin interfaceVariableSimpleIF- Returns:
- Variable rank
-
getShape
public int[] getShape()
Description copied from interface:VariableSimpleIFVariable shape- Specified by:
getShapein interfaceVariableSimpleIF- Returns:
- Variable shape
-
getDimensions
public List<Dimension> getDimensions()
Description copied from interface:VariableSimpleIFDimension List. empty for a scalar variable.- Specified by:
getDimensionsin interfaceVariableSimpleIF- Returns:
- List of ucar.nc2.Dimension, ImmutableList in ver6
-
getAttributes
@Deprecated public List<Attribute> getAttributes()
Deprecated.Description copied from interface:VariableSimpleIFAttributes for the variable.- Specified by:
getAttributesin interfaceVariableSimpleIF- Returns:
- List of type ucar.nc2.Attribute
-
findAttributeIgnoreCase
public Attribute findAttributeIgnoreCase(String attName)
Description copied from interface:VariableSimpleIFfind the attribute for the variable with the given name, ignoring case.- Specified by:
findAttributeIgnoreCasein interfaceVariableSimpleIF- Parameters:
attName- attribute name- Returns:
- the attribute for the variable with the given name, or null if not found.
-
attributes
public AttributeContainer attributes()
Description copied from interface:VariableSimpleIFAttributes for the variable.- Specified by:
attributesin interfaceVariableSimpleIF
-
-