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 / feature / FeatureTypeDefinitionsManager.java @ 43628
History | View | Annotate | Download (1.5 KB)
1 | 42104 | jjdelcerro | |
---|---|---|---|
2 | 42775 | jjdelcerro | package org.gvsig.fmap.dal.feature; |
3 | 42104 | jjdelcerro | |
4 | 42775 | jjdelcerro | import java.io.File; |
5 | 42104 | jjdelcerro | import org.gvsig.tools.dynobject.DynClass; |
6 | |||
7 | |||
8 | 42775 | jjdelcerro | public interface FeatureTypeDefinitionsManager { |
9 | 42490 | jjdelcerro | |
10 | 42775 | jjdelcerro | /**
|
11 | * Search if exists a DynClass associated to the feature type and return it.
|
||
12 | * If do not exists a DynClass for this feature type return the feature type
|
||
13 | * as the default dynClass for it.
|
||
14 | *
|
||
15 | * @param store
|
||
16 | * @param featureType
|
||
17 | * @return the DynClass associated to this feature type
|
||
18 | */
|
||
19 | public DynClass get(FeatureStore store, FeatureType featureType);
|
||
20 | |||
21 | /**
|
||
22 | * Return true if exists a DynClass defined associated to the feature
|
||
23 | * type passed as parameter.
|
||
24 | *
|
||
25 | * @param store
|
||
26 | * @param featureType
|
||
27 | * @return
|
||
28 | */
|
||
29 | public boolean contains(FeatureStore store, FeatureType featureType); |
||
30 | 42490 | jjdelcerro | |
31 | 42775 | jjdelcerro | /**
|
32 | * Associate the DynClass to the feature type.
|
||
33 | * This association persist betwen sessions.
|
||
34 | *
|
||
35 | * @param store
|
||
36 | * @param featureType
|
||
37 | * @param dynClass
|
||
38 | */
|
||
39 | public void add(FeatureStore store, FeatureType featureType, DynClass dynClass); |
||
40 | |||
41 | /**
|
||
42 | * Unlink the DynClass associated to the feature type.
|
||
43 | * This force reload next time to call "get" for this
|
||
44 | * feature type.
|
||
45 | *
|
||
46 | * @param store
|
||
47 | * @param featureType
|
||
48 | */
|
||
49 | public void remove(FeatureStore store, FeatureType featureType); |
||
50 | 42490 | jjdelcerro | |
51 | 42775 | jjdelcerro | /**
|
52 | * Add the definitions of feature types in the file.
|
||
53 | *
|
||
54 | * @param model
|
||
55 | */
|
||
56 | public void addModel(File model); |
||
57 | 42490 | jjdelcerro | |
58 | 42104 | jjdelcerro | } |