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