|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object visad.data.dods.DataFactory
public class DataFactory
Provides support for creating adapters that bridge between DODS data objects and the VisAD data-import context.
Instances are immutable.
Constructor Summary | |
---|---|
protected |
DataFactory()
Constructs from nothing. |
protected |
DataFactory(AttributeAdapterFactory attributeFactory,
VariableAdapterFactory variableFactory)
Constructs from adapter factories for DODS attributes and DODS variables. |
Method Summary | |
---|---|
DataImpl |
data(dods.dap.BaseType var,
dods.dap.DAS das,
boolean copy)
Returns the VisAD data object corresponding to a DODS variable. |
DataImpl |
data(String name,
dods.dap.Attribute attribute,
boolean copy)
Returns the VisAD data object corresponding to a DODS attribute. |
static DataFactory |
dataFactory()
Returns an instance of this class. |
static DataFactory |
dataFactory(AttributeAdapterFactory attributeFactory,
VariableAdapterFactory variableFactory)
Returns an instance of this class corresponding to adapter factories for DODS attributes and DODS variables. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected DataFactory()
protected DataFactory(AttributeAdapterFactory attributeFactory, VariableAdapterFactory variableFactory)
attributeFactory
- An adapter factory for DODS attributes.variableFactory
- An adapter factory for DODS variables.Method Detail |
---|
public static DataFactory dataFactory()
public static DataFactory dataFactory(AttributeAdapterFactory attributeFactory, VariableAdapterFactory variableFactory)
attributeFactory
- An adapter factory for DODS attributes.variableFactory
- An adapter factory for DODS variables.
public DataImpl data(String name, dods.dap.Attribute attribute, boolean copy) throws BadFormException, VisADException, RemoteException
name
- The name of the DODS attribute.attribute
- A DODS attribute.copy
- If true, then a copy of the data object is
returned.
BadFormException
- The DODS information is corrupt.
VisADException
- VisAD failure.
RemoteException
- Java RMI failure.public DataImpl data(dods.dap.BaseType var, dods.dap.DAS das, boolean copy) throws BadFormException, VisADException, RemoteException
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.
BadFormException
- The DODS information is corrupt.
VisADException
- VisAD failure.
RemoteException
- Java RMI failure.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |