ucar.nc2.dt
Class VariableSimpleAdapter
java.lang.Object
ucar.nc2.dt.VariableSimpleAdapter
- All Implemented Interfaces:
- java.lang.Comparable, VariableSimpleIF
public class VariableSimpleAdapter
- extends java.lang.Object
- implements VariableSimpleIF
Adapt a VariableSimpleIF into another VariableSimpleIF, so it can be subclassed.
- Version:
- $Revision:51 $ $Date:2006-07-12 17:13:13Z $
- Author:
- caron
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
VariableSimpleAdapter
public VariableSimpleAdapter(VariableSimpleIF v)
getName
public java.lang.String getName()
- Specified by:
getName in interface VariableSimpleIF
- Returns:
- full name of the data Variable
getShortName
public java.lang.String getShortName()
- Specified by:
getShortName in interface VariableSimpleIF
- Returns:
- short name of the data Variable
getDataType
public DataType getDataType()
- Specified by:
getDataType in interface VariableSimpleIF
- Returns:
- Variable's data type
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription in interface VariableSimpleIF
- Returns:
- Text description of the Variable
getInfo
public java.lang.String getInfo()
getUnitsString
public java.lang.String getUnitsString()
- Specified by:
getUnitsString in interface VariableSimpleIF
getRank
public int getRank()
- Specified by:
getRank in interface VariableSimpleIF
- Returns:
- Variable rank
getShape
public int[] getShape()
- Specified by:
getShape in interface VariableSimpleIF
- Returns:
- Variable shape
getDimensions
public java.util.List getDimensions()
- Specified by:
getDimensions in interface VariableSimpleIF
- Returns:
- List of ucar.nc2.Dimension
getAttributes
public java.util.List getAttributes()
- Description copied from interface:
VariableSimpleIF
- Attributes for the variable.
- Specified by:
getAttributes in interface VariableSimpleIF
- Returns:
- List of type ucar.nc2.Attribute
findAttributeIgnoreCase
public Attribute findAttributeIgnoreCase(java.lang.String attName)
- Specified by:
findAttributeIgnoreCase in interface VariableSimpleIF
- Parameters:
attName - attribute name
- Returns:
- the attribute for the variable with the given name, ignoring case.
convertScaleOffsetMissing
public double convertScaleOffsetMissing(byte value)
- Specified by:
convertScaleOffsetMissing in interface VariableSimpleIF
convertScaleOffsetMissing
public double convertScaleOffsetMissing(short value)
- Specified by:
convertScaleOffsetMissing in interface VariableSimpleIF
convertScaleOffsetMissing
public double convertScaleOffsetMissing(int value)
- Specified by:
convertScaleOffsetMissing in interface VariableSimpleIF
convertScaleOffsetMissing
public double convertScaleOffsetMissing(long value)
- Specified by:
convertScaleOffsetMissing in interface VariableSimpleIF
convertScaleOffsetMissing
public double convertScaleOffsetMissing(double value)
- Specified by:
convertScaleOffsetMissing in interface VariableSimpleIF
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
compareTo
public int compareTo(java.lang.Object o)
- Implement Comparable
- Specified by:
compareTo in interface java.lang.Comparable