ucar.nc2.dt.radial
Class RadialDatasetSweepAdapter.MyRadialVariableAdapter

java.lang.Object
  extended by ucar.nc2.dt.radial.RadialDatasetSweepAdapter.MyRadialVariableAdapter
All Implemented Interfaces:
Comparable<VariableSimpleIF>, VariableSimpleIF
Enclosing class:
RadialDatasetSweepAdapter

public class RadialDatasetSweepAdapter.MyRadialVariableAdapter
extends Object
implements VariableSimpleIF


Constructor Summary
RadialDatasetSweepAdapter.MyRadialVariableAdapter(String vName, List<Attribute> atts)
           
 
Method Summary
 int compareTo(VariableSimpleIF o)
          Sort by name
 Attribute findAttributeIgnoreCase(String attName)
          find the attribute for the variable with the given name, ignoring case.
 List<Attribute> getAttributes()
          Attributes for the variable.
 DataType getDataType()
          Variable's data type
 String getDescription()
          description of the Variable
 List<Dimension> getDimensions()
          Dimension List.
 String getInfo()
           
 String getName()
           
 int getRank()
          Variable rank
 int[] getShape()
          Variable shape
 String getShortName()
          short name of the data Variable
 String getUnitsString()
          Units of the Variable.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RadialDatasetSweepAdapter.MyRadialVariableAdapter

public RadialDatasetSweepAdapter.MyRadialVariableAdapter(String vName,
                                                         List<Attribute> atts)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

compareTo

public int compareTo(VariableSimpleIF o)
Sort by name

Specified by:
compareTo in interface Comparable<VariableSimpleIF>

getName

public String getName()
Specified by:
getName in interface VariableSimpleIF

getShortName

public String getShortName()
Description copied from interface: VariableSimpleIF
short name of the data Variable

Specified by:
getShortName in interface VariableSimpleIF
Returns:
short name of the data Variable

getDataType

public DataType getDataType()
Description copied from interface: VariableSimpleIF
Variable's data type

Specified by:
getDataType in interface VariableSimpleIF
Returns:
Variable's data type

getDescription

public String getDescription()
Description copied from interface: VariableSimpleIF
description of the Variable

Specified by:
getDescription in interface VariableSimpleIF
Returns:
description of the Variable, or null if none.

getInfo

public String getInfo()

getUnitsString

public String getUnitsString()
Description copied from interface: VariableSimpleIF
Units of the Variable. These should be udunits compatible if possible

Specified by:
getUnitsString in interface VariableSimpleIF
Returns:
Units of the Variable, or null if none.

getRank

public int getRank()
Description copied from interface: VariableSimpleIF
Variable rank

Specified by:
getRank in interface VariableSimpleIF
Returns:
Variable rank

getShape

public int[] getShape()
Description copied from interface: VariableSimpleIF
Variable shape

Specified by:
getShape in interface VariableSimpleIF
Returns:
Variable shape

getDimensions

public List<Dimension> getDimensions()
Description copied from interface: VariableSimpleIF
Dimension List. empty for a scalar variable.

Specified by:
getDimensions in interface VariableSimpleIF
Returns:
List of ucar.nc2.Dimension

getAttributes

public List<Attribute> 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(String attName)
Description copied from interface: VariableSimpleIF
find the attribute for the variable with the given name, ignoring case.

Specified by:
findAttributeIgnoreCase in interface VariableSimpleIF
Parameters:
attName - attribute name
Returns:
the attribute for the variable with the given name, or null if not found.


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.