visad.data.dods
Class DataFactory
- java.lang.Object
-
- visad.data.dods.DataFactory
-
public class DataFactory extends java.lang.ObjectProvides support for creating adapters that bridge between DODS data objects 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 DataImpldata(dods.dap.BaseType var, dods.dap.DAS das, boolean copy)Returns the VisAD data object corresponding to a DODS variable.DataImpldata(java.lang.String name, dods.dap.Attribute attribute, boolean copy)Returns the VisAD data object corresponding to a DODS attribute.static DataFactorydataFactory()Returns an instance of this class.static DataFactorydataFactory(AttributeAdapterFactory attributeFactory, VariableAdapterFactory variableFactory)Returns an instance of this class corresponding to adapter factories for DODS attributes and DODS variables.
-
-
-
Method Detail
-
dataFactory
public static DataFactory dataFactory()
Returns an instance of this class.- Returns:
- An instance of this class.
-
dataFactory
public static DataFactory dataFactory(AttributeAdapterFactory attributeFactory, VariableAdapterFactory variableFactory)
Returns an instance of this class corresponding to adapter factories for DODS attributes and DODS variables.- Parameters:
attributeFactory- An adapter factory for DODS attributes.variableFactory- An adapter factory for DODS variables.- Returns:
- An instance of this class corresponding to the input.
-
data
public DataImpl data(java.lang.String name, dods.dap.Attribute attribute, boolean copy) throws BadFormException, VisADException, java.rmi.RemoteException
Returns the VisAD data object corresponding to a DODS attribute.- Parameters:
name- The name of the DODS attribute.attribute- A DODS attribute.copy- If true, then a copy of the data object is returned.- Returns:
- The VisAD data object corresponding to the DODS attribute.
- Throws:
BadFormException- The DODS information is corrupt.VisADException- VisAD failure.java.rmi.RemoteException- Java RMI failure.
-
data
public DataImpl data(dods.dap.BaseType var, dods.dap.DAS das, boolean copy) throws BadFormException, VisADException, java.rmi.RemoteException
Returns the VisAD data object corresponding to a DODS variable.- Parameters:
var- A DODS variable.das- The DODS DAS in which the attribute table for the DODS variable is embedded.copy- If true, then a copy of the data object is returned.- Returns:
- The VisAD data object corresponding to the DODS variable.
- Throws:
BadFormException- The DODS information is corrupt.VisADException- VisAD failure.java.rmi.RemoteException- Java RMI failure.
-
-
DMelt 3.0 © DataMelt by jWork.ORG