svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.dal / org.gvsig.fmap.dal.api / src / main / java / org / gvsig / fmap / dal / StoresRepository.java @ 44439
History | View | Annotate | Download (1.14 KB)
1 |
package org.gvsig.fmap.dal; |
---|---|
2 |
|
3 |
import java.util.Collection; |
4 |
import org.gvsig.tools.observer.Observable; |
5 |
import org.gvsig.tools.util.UnmodifiableBasicMap; |
6 |
|
7 |
/**
|
8 |
*
|
9 |
* @author jjdelcerro
|
10 |
*/
|
11 |
public interface StoresRepository |
12 |
extends
|
13 |
UnmodifiableBasicMap<String, DataStoreParameters>,
|
14 |
Observable
|
15 |
{ |
16 |
|
17 |
public static final String NOTIFICATION_ADDREPOSITORY = "addRepository"; |
18 |
public static final String NOTIFICATION_REMOVEREPOSITORY = "removeRepository"; |
19 |
public static final String NOTIFICATION_ADD = "add"; |
20 |
public static final String NOTIFICATION_REMOVE = "remove"; |
21 |
|
22 |
|
23 |
public String getID(); |
24 |
|
25 |
public String getLabel(); |
26 |
|
27 |
public Collection<StoresRepository> getSubrepositories(); |
28 |
|
29 |
public StoresRepository getSubrepository(String Id); |
30 |
|
31 |
public boolean addRepository(StoresRepository repository); |
32 |
|
33 |
public boolean removeRepository(String name); |
34 |
|
35 |
public void add(String name, DataStoreParameters parameters); |
36 |
|
37 |
public boolean contains(DataStoreParameters parameters); |
38 |
|
39 |
public void remove(String name); |
40 |
|
41 |
public DataStore getStore(String name); |
42 |
|
43 |
} |