|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object visad.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(String name,
String location)
Construct a data repository. |
Method Summary | |
---|---|
void |
add(String id,
Data data,
boolean replace)
Add a data object to an existing data object in the repository. |
protected abstract String |
fullName(String id)
Return the fully-qualified name of a persistent data object. |
abstract 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. |
String |
getLocation()
Return the location of this repository. |
String |
getName()
Return the name of this repository. |
DataImpl |
open(String id)
Open an existing data object in the repository. |
DataImpl |
open(URL url)
Open a data object specified as a URL. |
void |
save(String id,
Data data,
boolean replace)
Save a data object in the first compatible data form. |
void |
save(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(String name, String location)
Method Detail |
---|
public String getName()
public String getLocation()
public FormNode getForms()
public FormNode getForms(Data data) throws VisADException, IOException, RemoteException
VisADException
IOException
RemoteException
public abstract Enumeration getEnumeration() throws BadRepositoryException, SecurityException
BadRepositoryException
SecurityException
public void save(String id, Data data, boolean replace) throws VisADException, IOException, RemoteException
VisADException
IOException
RemoteException
public void save(String id, Data data, FormNode form, boolean replace) throws VisADException, RemoteException, IOException
VisADException
RemoteException
IOException
public void add(String id, Data data, boolean replace) throws VisADException
VisADException
public DataImpl open(String id) throws VisADException, IOException
VisADException
IOException
public DataImpl open(URL url) throws VisADException, IOException
VisADException
IOException
protected abstract String fullName(String id)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |