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