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 DODS Attribute.STRING
attributes to
the VisAD data-import context.
Instances are immutable.
- Author:
- Steven R. Emmerson
Method Summary |
DataImpl |
data(boolean copy)
Returns the VisAD data object corresponding to this instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringAttributeAdapter
public StringAttributeAdapter(String name,
dods.dap.Attribute attr)
throws VisADException,
RemoteException
- Constructs 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.
RemoteException
- Java RMI failure.
data
public DataImpl data(boolean copy)
- Returns the VisAD data object corresponding to this instance.
- Specified by:
data
in class AttributeAdapter
- Parameters:
copy
- If true, then a copy is returned.
- Returns:
- The VisAD data object corresponding to this
instance.