visad.data
Class FormNode
- java.lang.Object
-
- visad.data.FormNode
-
- Direct Known Subclasses:
- Form, FormFamily
public abstract class FormNode extends java.lang.ObjectA node in the data form hierarchy for the storage of persistent data. This class implements the "composite" design pattern; the node will actually be either a "Form" or a "FormFamily".
-
-
Constructor Summary
Constructors Constructor and Description FormNode(java.lang.String name)Construct a data-form node with the given name.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description abstract voidadd(java.lang.String id, Data data, boolean replace)Add data to an existing data object.abstract FormNodegetForms(Data data)Return the data forms that are compatible with a data object.java.lang.StringgetName()Return the name of this node.abstract DataImplopen(java.lang.String id)Open an existing data object.abstract DataImplopen(java.net.URL url)Open a data object specified as a URL.abstract voidsave(java.lang.String id, Data data, boolean replace)Save a VisAD data object in this form.
-
-
-
Constructor Detail
-
FormNode
public FormNode(java.lang.String name)
Construct a data-form node with the given name.
-
-
Method Detail
-
getName
public java.lang.String getName()
Return the name of this node.
-
save
public abstract void save(java.lang.String id, Data data, boolean replace) throws BadFormException, java.io.IOException, java.rmi.RemoteException, VisADExceptionSave a VisAD data object in this form.- Throws:
BadFormExceptionjava.io.IOExceptionjava.rmi.RemoteExceptionVisADException
-
add
public abstract void add(java.lang.String id, Data data, boolean replace) throws BadFormExceptionAdd data to an existing data object.- Throws:
BadFormException
-
open
public abstract DataImpl open(java.lang.String id) throws BadFormException, java.io.IOException, VisADException
Open an existing data object.- Throws:
BadFormExceptionjava.io.IOExceptionVisADException
-
open
public abstract DataImpl open(java.net.URL url) throws BadFormException, VisADException, java.io.IOException
Open a data object specified as a URL.- Throws:
BadFormExceptionVisADExceptionjava.io.IOException
-
getForms
public abstract FormNode getForms(Data data) throws VisADException, java.rmi.RemoteException, java.io.IOException
Return the data forms that are compatible with a data object.- Throws:
VisADExceptionjava.rmi.RemoteExceptionjava.io.IOException
-
-
DMelt 3.0 © DataMelt by jWork.ORG