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 @ 44500
History | View | Annotate | Download (1.14 KB)
1 | 44253 | jjdelcerro | package org.gvsig.fmap.dal; |
---|---|---|---|
2 | |||
3 | 44304 | jjdelcerro | import java.util.Collection; |
4 | 44377 | jjdelcerro | import org.gvsig.tools.observer.Observable; |
5 | 44253 | jjdelcerro | import org.gvsig.tools.util.UnmodifiableBasicMap; |
6 | |||
7 | /**
|
||
8 | *
|
||
9 | * @author jjdelcerro
|
||
10 | */
|
||
11 | 44377 | jjdelcerro | 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 | 44253 | jjdelcerro | |
23 | 44304 | jjdelcerro | public String getID(); |
24 | |||
25 | public String getLabel(); |
||
26 | |||
27 | public Collection<StoresRepository> getSubrepositories(); |
||
28 | |||
29 | 44439 | jjdelcerro | public StoresRepository getSubrepository(String Id); |
30 | |||
31 | 44304 | jjdelcerro | public boolean addRepository(StoresRepository repository); |
32 | |||
33 | public boolean removeRepository(String name); |
||
34 | |||
35 | 44253 | jjdelcerro | public void add(String name, DataStoreParameters parameters); |
36 | |||
37 | 44346 | jjdelcerro | public boolean contains(DataStoreParameters parameters); |
38 | |||
39 | 44253 | jjdelcerro | public void remove(String name); |
40 | |||
41 | 44304 | jjdelcerro | public DataStore getStore(String name); |
42 | |||
43 | 44253 | jjdelcerro | } |