visad.data.dods
Class StringVariableAdapter
- java.lang.Object
-
- visad.data.dods.Adapter
-
- visad.data.dods.VariableAdapter
-
- visad.data.dods.StringVariableAdapter
-
public class StringVariableAdapter extends VariableAdapter
Provides support for adapting DODSDStringvariables to the VisAD data-import context.Instances are immutable.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description DataImpldata(dods.dap.DString var, boolean copy)Returns the VisADDataImplcorresponding to a DODSDString.MathTypegetMathType()Returns the VisADMathTypeof this instance.static StringVariableAdapterstringVariableAdapter(dods.dap.DString var, dods.dap.DAS das)Returns an instance of this class corresponding to a DODSDString.
-
-
-
Method Detail
-
stringVariableAdapter
public static StringVariableAdapter stringVariableAdapter(dods.dap.DString var, dods.dap.DAS das) throws VisADException
Returns an instance of this class corresponding to a DODSDString.- Parameters:
var- The DODS variable. Only the DODS metadata is used: the variable needn't have any actual data.das- The DODS DAS in which the attribute table for the DODS variable is embedded.- Returns:
- An instance of this class corresponding to the input arguments.
- Throws:
VisADException- VisAD failure.
-
getMathType
public MathType getMathType()
Returns the VisADMathTypeof this instance.- Specified by:
getMathTypein classVariableAdapter- Returns:
- The MathType of this instance.
-
data
public DataImpl data(dods.dap.DString var, boolean copy) throws VisADException
Returns the VisADDataImplcorresponding to a DODSDString.- Overrides:
datain classVariableAdapter- Parameters:
var- The DODS variable to have the corresponding VisAD data object returned. The variable must be compatible with the variable used to construct this instance.copy- If true, then data values are copied.- Returns:
- The VisAD data object of this instance. The
class of the object will be
Text. The VisADMathTypeof the data object will be based on the DODS variable used during construction of this instance. - Throws:
VisADException- VisAD failure. Possibly the variable wasn't compatible with the variable used to construct this instance.
-
-
DMelt 3.0 © DataMelt by jWork.ORG