|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvisad.data.Repository
public abstract class Repository
A repository of persistent data objects. This class implements the "abstract factory" design pattern. The concrete implementation of this class could either be "DirectoryRepository" (for accessing files residing on local disk) or "RemoteRepository" (for accessing remote files via a server) or something else. The concrete class of the "Form" objects will be determined by this class's concrete class (and, hence, so will the concrete class of any constructed "FileAccessor").
Field Summary | |
---|---|
protected FormNode |
forms
The data forms supported by this repository. |
Constructor Summary | |
---|---|
Repository(java.lang.String name,
java.lang.String location)
Construct a data repository. |
Method Summary | |
---|---|
void |
add(java.lang.String id,
Data data,
boolean replace)
Add a data object to an existing data object in the repository. |
protected abstract java.lang.String |
fullName(java.lang.String id)
Return the fully-qualified name of a persistent data object. |
abstract java.util.Enumeration |
getEnumeration()
Return an enumeration of the data objects in this repository. |
FormNode |
getForms()
Return the forms of data that are supported by this repository. |
FormNode |
getForms(Data data)
Return the forms of data that are both supported by this repository and compatible with a data object. |
java.lang.String |
getLocation()
Return the location of this repository. |
java.lang.String |
getName()
Return the name of this repository. |
DataImpl |
open(java.lang.String id)
Open an existing data object in the repository. |
DataImpl |
open(java.net.URL url)
Open a data object specified as a URL. |
void |
save(java.lang.String id,
Data data,
boolean replace)
Save a data object in the first compatible data form. |
void |
save(java.lang.String id,
Data data,
FormNode form,
boolean replace)
Save a data object in a particular form. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected FormNode forms
Constructor Detail |
---|
public Repository(java.lang.String name, java.lang.String location)
Method Detail |
---|
public java.lang.String getName()
public java.lang.String getLocation()
public FormNode getForms()
public FormNode getForms(Data data) throws VisADException, java.io.IOException, java.rmi.RemoteException
VisADException
java.io.IOException
java.rmi.RemoteException
public abstract java.util.Enumeration getEnumeration() throws BadRepositoryException, java.lang.SecurityException
BadRepositoryException
java.lang.SecurityException
public void save(java.lang.String id, Data data, boolean replace) throws VisADException, java.io.IOException, java.rmi.RemoteException
VisADException
java.io.IOException
java.rmi.RemoteException
public void save(java.lang.String id, Data data, FormNode form, boolean replace) throws VisADException, java.rmi.RemoteException, java.io.IOException
VisADException
java.rmi.RemoteException
java.io.IOException
public void add(java.lang.String id, Data data, boolean replace) throws VisADException
VisADException
public DataImpl open(java.lang.String id) throws VisADException, java.io.IOException
VisADException
java.io.IOException
public DataImpl open(java.net.URL url) throws VisADException, java.io.IOException
VisADException
java.io.IOException
protected abstract java.lang.String fullName(java.lang.String id)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |