root / branches / v2_0_0_prep / libraries / libFMap_dal / src / org / gvsig / fmap / dal / feature / FeatureStoreTransforms.java @ 38608
History | View | Annotate | Download (2.26 KB)
1 | 24613 | jjdelcerro | package org.gvsig.fmap.dal.feature; |
---|---|---|---|
2 | |||
3 | import java.util.Iterator; |
||
4 | |||
5 | import org.gvsig.fmap.dal.exception.DataException; |
||
6 | |||
7 | 25210 | jiyarza | /**
|
8 | * This interface represents a container for store transforms.
|
||
9 | *
|
||
10 | 25407 | jiyarza | * Provides access to transforms by index and by iterator, and also allows
|
11 | * adding and removing transforms.
|
||
12 | 25210 | jiyarza | *
|
13 | */
|
||
14 | 24613 | jjdelcerro | public interface FeatureStoreTransforms { |
15 | |||
16 | 25210 | jiyarza | /**
|
17 | * Returns the FeatureStoreTransform given its index.
|
||
18 | 26359 | jmvivo | *
|
19 | 25210 | jiyarza | * @param index
|
20 | * a position in this FeatureStoreTransforms
|
||
21 | 26359 | jmvivo | *
|
22 | 25210 | jiyarza | * @return
|
23 | * the FeatureStoreTransform that is stored in the given index.
|
||
24 | */
|
||
25 | 24613 | jjdelcerro | public FeatureStoreTransform getTransform(int index); |
26 | |||
27 | 25210 | jiyarza | /**
|
28 | * Adds a FeatureStoreTransform to this container.
|
||
29 | 26359 | jmvivo | *
|
30 | 25210 | jiyarza | * @param transform
|
31 | * the FeatureStoreTransform to add
|
||
32 | 26359 | jmvivo | *
|
33 | 25210 | jiyarza | * @return
|
34 | * the added FeatureStoreTransform
|
||
35 | 26359 | jmvivo | *
|
36 | 25210 | jiyarza | * @throws DataException
|
37 | */
|
||
38 | 24613 | jjdelcerro | public FeatureStoreTransform add(FeatureStoreTransform transform)
|
39 | throws DataException;
|
||
40 | |||
41 | 25210 | jiyarza | /**
|
42 | * Returns the number of FeatureStoreTransforms stored in this container
|
||
43 | 26359 | jmvivo | *
|
44 | 25210 | jiyarza | * @return
|
45 | * number of FeatureStoreTransforms stored in this container
|
||
46 | */
|
||
47 | 24613 | jjdelcerro | public int size(); |
48 | |||
49 | 25210 | jiyarza | /**
|
50 | * Indicates whether this container is empty.
|
||
51 | 26359 | jmvivo | *
|
52 | 25210 | jiyarza | * @return
|
53 | * true if this container is empty, false if not
|
||
54 | */
|
||
55 | 24613 | jjdelcerro | public boolean isEmpty(); |
56 | |||
57 | 25210 | jiyarza | /**
|
58 | * Returns an iterator over this container elements.
|
||
59 | 26359 | jmvivo | *
|
60 | 25210 | jiyarza | * @return
|
61 | * an iterator over this container elements.
|
||
62 | */
|
||
63 | 24613 | jjdelcerro | public Iterator iterator(); |
64 | |||
65 | 25210 | jiyarza | /**
|
66 | * Empties this container.
|
||
67 | 26359 | jmvivo | *
|
68 | 25210 | jiyarza | */
|
69 | 24613 | jjdelcerro | public void clear(); |
70 | |||
71 | 25210 | jiyarza | /**
|
72 | * Removes the {@link FeatureStoreTransform} given its index.
|
||
73 | 26359 | jmvivo | *
|
74 | 25210 | jiyarza | * @param index
|
75 | * the position of the {@link FeatureStoreTransform} to remove.
|
||
76 | * @return
|
||
77 | * the removed object
|
||
78 | */
|
||
79 | 24613 | jjdelcerro | public Object remove(int index); |
80 | |||
81 | 25210 | jiyarza | /**
|
82 | * Removes the given {@link FeatureStoreTransform}.
|
||
83 | 26359 | jmvivo | *
|
84 | 25210 | jiyarza | * @param transform
|
85 | * {@link FeatureStoreTransform} to remove
|
||
86 | * @return
|
||
87 | * true if the transform was successfully removed, false if not.
|
||
88 | */
|
||
89 | 24613 | jjdelcerro | public boolean remove(FeatureStoreTransform transform); |
90 | 26359 | jmvivo | |
91 | /**
|
||
92 | * Retruns true if any {@link FeatureStoreTransform} make changes of any
|
||
93 | * previous attributes values.<br>
|
||
94 | *
|
||
95 | * If all {@link FeatureStoreTransform} affects only to attributes defition,
|
||
96 | * the {@link FeatureSet} performance can be better.
|
||
97 | 27234 | jmvivo | *
|
98 | 26359 | jmvivo | * @return
|
99 | */
|
||
100 | public boolean isTransformsOriginalValues(); |
||
101 | 27234 | jmvivo | |
102 | 24613 | jjdelcerro | } |