visad.data.dods
Class StringAttributeAdapter
- java.lang.Object
-
- visad.data.dods.Adapter
-
- visad.data.dods.AttributeAdapter
-
- visad.data.dods.StringAttributeAdapter
-
public class StringAttributeAdapter extends AttributeAdapter
Provides support for adapting DODSAttribute.STRINGattributes to the VisAD data-import context.Instances are immutable.
-
-
Constructor Summary
Constructors Constructor and Description StringAttributeAdapter(java.lang.String name, dods.dap.Attribute attr)Constructs from a name and an appropriate attribute.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description DataImpldata(boolean copy)Returns the VisAD data object corresponding to this instance.
-
-
-
Constructor Detail
-
StringAttributeAdapter
public StringAttributeAdapter(java.lang.String name, dods.dap.Attribute attr) throws VisADException, java.rmi.RemoteExceptionConstructs from a name and an appropriate attribute.- Parameters:
name- The name of the attribute.attr- The attribute. Must have the appropriate type.- Throws:
VisADException- VisAD failure. Probably the attribute has an inappropriate type.java.rmi.RemoteException- Java RMI failure.
-
-
Method Detail
-
data
public DataImpl data(boolean copy)
Returns the VisAD data object corresponding to this instance.- Specified by:
datain classAttributeAdapter- Parameters:
copy- If true, then a copy is returned.- Returns:
- The VisAD data object corresponding to this instance.
-
-
DMelt 3.0 © DataMelt by jWork.ORG