Documentation of 'visad.data.dods.StringVariableAdapter' Java class
StringVariableAdapter
visad.data.dods

Class StringVariableAdapter



  • public class StringVariableAdapter
    extends VariableAdapter
    Provides support for adapting DODS DString variables to the VisAD data-import context.

    Instances are immutable.

    • 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 DODS DString.
        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.
      • data

        public DataImpl data(dods.dap.DString var,
                             boolean copy)
                      throws VisADException
        Returns the VisAD DataImpl corresponding to a DODS DString.
        Overrides:
        data in class VariableAdapter
        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 VisAD MathType of 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

You see the box below because you did not login.