visad.data.dods
Class AttributeAdapterFactory
- java.lang.Object
-
- visad.data.dods.AttributeAdapterFactory
-
public class AttributeAdapterFactory extends java.lang.ObjectProvides support for creating adapters that bridge between DODS attributes and the VisAD data-import context.Instances are immutable.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description AttributeAdapterattributeAdapter(java.lang.String name, dods.dap.Attribute attr)Returns an adapter of a DODS attribute.static AttributeAdapterFactoryattributeAdapterFactory()Returns an instance of this class.ByteAttributeAdapterbyteAdapter(java.lang.String name, dods.dap.Attribute attr)Returns an adapter of a DODSAttribute.BYTEattribute.ContainerAttributeAdaptercontainerAdapter(java.lang.String name, dods.dap.Attribute attr)Returns an adapter of a DODSAttribute.CONTAINERattribute.Float32AttributeAdapterfloat32Adapter(java.lang.String name, dods.dap.Attribute attr)Returns an adapter of a DODSAttribute.FLOAT32attribute.Float64AttributeAdapterfloat64Adapter(java.lang.String name, dods.dap.Attribute attr)Returns an adapter of a DODSAttribute.FLOAT64attribute.Int16AttributeAdapterint16Adapter(java.lang.String name, dods.dap.Attribute attr)Returns an adapter of a DODSAttribute.INT16attribute.Int32AttributeAdapterint32Adapter(java.lang.String name, dods.dap.Attribute attr)Returns an adapter of a DODSAttribute.INT32attribute.StringAttributeAdapterstringAdapter(java.lang.String name, dods.dap.Attribute attr)Returns an adapter of a DODSAttribute.STRINGattribute.UInt16AttributeAdapteruInt16Adapter(java.lang.String name, dods.dap.Attribute attr)Returns an adapter of a DODSAttribute.UINT16attribute.UInt32AttributeAdapteruInt32Adapter(java.lang.String name, dods.dap.Attribute attr)Returns an adapter of a DODSAttribute.UINT32attribute.UnknownAttributeAdapterunknownAdapter(java.lang.String name, dods.dap.Attribute attr)Returns an adapter of a DODSAttribute.UNKNOWNattribute.
-
-
-
Method Detail
-
attributeAdapterFactory
public static AttributeAdapterFactory attributeAdapterFactory()
Returns an instance of this class.- Returns:
- An instance of this class.
-
attributeAdapter
public AttributeAdapter attributeAdapter(java.lang.String name, dods.dap.Attribute attr) throws BadFormException, VisADException, java.rmi.RemoteException
Returns an adapter of a DODS attribute.- Parameters:
name- The name of the DODS attribute.attr- The DODS attribute.- Returns:
- An adapter of the DODS attribute. The class of the object depends on the attribute.
- Throws:
BadFormException- The DODS information is corrupt.VisADException- VisAD failure.java.rmi.RemoteException- Java RMI failure.
-
stringAdapter
public StringAttributeAdapter stringAdapter(java.lang.String name, dods.dap.Attribute attr) throws VisADException, java.rmi.RemoteException
Returns an adapter of a DODSAttribute.STRINGattribute.- Parameters:
name- The name of the DODS attribute.attr- The DODS attribute.- Returns:
- An adapter of the DODS attribute.
- Throws:
VisADException- VisAD failure.java.rmi.RemoteException- Java RMI failure.
-
byteAdapter
public ByteAttributeAdapter byteAdapter(java.lang.String name, dods.dap.Attribute attr) throws VisADException, java.rmi.RemoteException
Returns an adapter of a DODSAttribute.BYTEattribute.- Parameters:
name- The name of the DODS attribute.attr- The DODS attribute.- Returns:
- An adapter of the DODS attribute.
- Throws:
VisADException- VisAD failure.java.rmi.RemoteException- Java RMI failure.
-
int16Adapter
public Int16AttributeAdapter int16Adapter(java.lang.String name, dods.dap.Attribute attr) throws VisADException, java.rmi.RemoteException
Returns an adapter of a DODSAttribute.INT16attribute.- Parameters:
name- The name of the DODS attribute.attr- The DODS attribute.- Returns:
- An adapter of the DODS attribute.
- Throws:
VisADException- VisAD failure.java.rmi.RemoteException- Java RMI failure.
-
uInt16Adapter
public UInt16AttributeAdapter uInt16Adapter(java.lang.String name, dods.dap.Attribute attr) throws VisADException, java.rmi.RemoteException
Returns an adapter of a DODSAttribute.UINT16attribute.- Parameters:
name- The name of the DODS attribute.attr- The DODS attribute.- Returns:
- An adapter of the DODS attribute.
- Throws:
VisADException- VisAD failure.java.rmi.RemoteException- Java RMI failure.
-
int32Adapter
public Int32AttributeAdapter int32Adapter(java.lang.String name, dods.dap.Attribute attr) throws VisADException, java.rmi.RemoteException
Returns an adapter of a DODSAttribute.INT32attribute.- Parameters:
name- The name of the DODS attribute.attr- The DODS attribute.- Returns:
- An adapter of the DODS attribute.
- Throws:
VisADException- VisAD failure.java.rmi.RemoteException- Java RMI failure.
-
uInt32Adapter
public UInt32AttributeAdapter uInt32Adapter(java.lang.String name, dods.dap.Attribute attr) throws VisADException, java.rmi.RemoteException
Returns an adapter of a DODSAttribute.UINT32attribute.- Parameters:
name- The name of the DODS attribute.attr- The DODS attribute.- Returns:
- An adapter of the DODS attribute.
- Throws:
VisADException- VisAD failure.java.rmi.RemoteException- Java RMI failure.
-
float32Adapter
public Float32AttributeAdapter float32Adapter(java.lang.String name, dods.dap.Attribute attr) throws VisADException, java.rmi.RemoteException
Returns an adapter of a DODSAttribute.FLOAT32attribute.- Parameters:
name- The name of the DODS attribute.attr- The DODS attribute.- Returns:
- An adapter of the DODS attribute.
- Throws:
VisADException- VisAD failure.java.rmi.RemoteException- Java RMI failure.
-
float64Adapter
public Float64AttributeAdapter float64Adapter(java.lang.String name, dods.dap.Attribute attr) throws VisADException, java.rmi.RemoteException
Returns an adapter of a DODSAttribute.FLOAT64attribute.- Parameters:
name- The name of the DODS attribute.attr- The DODS attribute.- Returns:
- An adapter of the DODS attribute.
- Throws:
VisADException- VisAD failure.java.rmi.RemoteException- Java RMI failure.
-
containerAdapter
public ContainerAttributeAdapter containerAdapter(java.lang.String name, dods.dap.Attribute attr) throws VisADException, java.rmi.RemoteException
Returns an adapter of a DODSAttribute.CONTAINERattribute.- Parameters:
name- The name of the DODS attribute.attr- The DODS attribute.- Returns:
- An adapter of the DODS attribute.
- Throws:
VisADException- VisAD failure.java.rmi.RemoteException- Java RMI failure.
-
unknownAdapter
public UnknownAttributeAdapter unknownAdapter(java.lang.String name, dods.dap.Attribute attr) throws VisADException, java.rmi.RemoteException
Returns an adapter of a DODSAttribute.UNKNOWNattribute.- Parameters:
name- The name of the DODS attribute.attr- The DODS attribute.- Returns:
- An adapter of the DODS attribute.
- Throws:
VisADException- VisAD failure.java.rmi.RemoteException- Java RMI failure.
-
-
DMelt 3.0 © DataMelt by jWork.ORG