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 / FeatureStoreTransforms.java @ 44669
History | View | Annotate | Download (3.33 KB)
1 | 40559 | jjdelcerro | /**
|
---|---|---|---|
2 | * gvSIG. Desktop Geographic Information System.
|
||
3 | *
|
||
4 | * Copyright (C) 2007-2013 gvSIG Association.
|
||
5 | *
|
||
6 | * This program is free software; you can redistribute it and/or
|
||
7 | * modify it under the terms of the GNU General Public License
|
||
8 | * as published by the Free Software Foundation; either version 3
|
||
9 | * of the License, or (at your option) any later version.
|
||
10 | *
|
||
11 | * This program is distributed in the hope that it will be useful,
|
||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
14 | * GNU General Public License for more details.
|
||
15 | *
|
||
16 | * You should have received a copy of the GNU General Public License
|
||
17 | * along with this program; if not, write to the Free Software
|
||
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
||
19 | * MA 02110-1301, USA.
|
||
20 | *
|
||
21 | * For any additional information, do not hesitate to contact us
|
||
22 | * at info AT gvsig.com, or visit our website www.gvsig.com.
|
||
23 | */
|
||
24 | 40435 | jjdelcerro | package org.gvsig.fmap.dal.feature; |
25 | |||
26 | import java.util.Iterator; |
||
27 | |||
28 | import org.gvsig.fmap.dal.exception.DataException; |
||
29 | import org.gvsig.tools.lang.Cloneable; |
||
30 | |||
31 | /**
|
||
32 | * This interface represents a container for store transforms.
|
||
33 | *
|
||
34 | * Provides access to transforms by index and by iterator, and also allows
|
||
35 | * adding and removing transforms.
|
||
36 | *
|
||
37 | */
|
||
38 | 43215 | jjdelcerro | public interface FeatureStoreTransforms extends Cloneable, Iterable<FeatureStoreTransform> { |
39 | 40435 | jjdelcerro | |
40 | /**
|
||
41 | * Returns the FeatureStoreTransform given its index.
|
||
42 | *
|
||
43 | * @param index
|
||
44 | * a position in this FeatureStoreTransforms
|
||
45 | *
|
||
46 | * @return
|
||
47 | * the FeatureStoreTransform that is stored in the given index.
|
||
48 | */
|
||
49 | public FeatureStoreTransform getTransform(int index); |
||
50 | |||
51 | /**
|
||
52 | * Adds a FeatureStoreTransform to this container.
|
||
53 | *
|
||
54 | * @param transform
|
||
55 | * the FeatureStoreTransform to add
|
||
56 | *
|
||
57 | * @return
|
||
58 | * the added FeatureStoreTransform
|
||
59 | *
|
||
60 | * @throws DataException
|
||
61 | */
|
||
62 | public FeatureStoreTransform add(FeatureStoreTransform transform)
|
||
63 | throws DataException;
|
||
64 | |||
65 | /**
|
||
66 | * Returns the number of FeatureStoreTransforms stored in this container
|
||
67 | *
|
||
68 | * @return
|
||
69 | * number of FeatureStoreTransforms stored in this container
|
||
70 | */
|
||
71 | public int size(); |
||
72 | |||
73 | /**
|
||
74 | * Indicates whether this container is empty.
|
||
75 | *
|
||
76 | * @return
|
||
77 | * true if this container is empty, false if not
|
||
78 | */
|
||
79 | public boolean isEmpty(); |
||
80 | |||
81 | /**
|
||
82 | * Returns an iterator over this container elements.
|
||
83 | *
|
||
84 | * @return
|
||
85 | * an iterator over this container elements.
|
||
86 | */
|
||
87 | 43215 | jjdelcerro | @Override
|
88 | public Iterator<FeatureStoreTransform> iterator(); |
||
89 | 40435 | jjdelcerro | |
90 | /**
|
||
91 | * Empties this container.
|
||
92 | *
|
||
93 | */
|
||
94 | public void clear(); |
||
95 | |||
96 | /**
|
||
97 | * Removes the {@link FeatureStoreTransform} given its index.
|
||
98 | *
|
||
99 | * @param index
|
||
100 | * the position of the {@link FeatureStoreTransform} to remove.
|
||
101 | * @return
|
||
102 | * the removed object
|
||
103 | */
|
||
104 | public Object remove(int index); |
||
105 | |||
106 | /**
|
||
107 | * Removes the given {@link FeatureStoreTransform}.
|
||
108 | *
|
||
109 | * @param transform
|
||
110 | * {@link FeatureStoreTransform} to remove
|
||
111 | * @return
|
||
112 | * true if the transform was successfully removed, false if not.
|
||
113 | */
|
||
114 | public boolean remove(FeatureStoreTransform transform); |
||
115 | |||
116 | /**
|
||
117 | * Retruns true if any {@link FeatureStoreTransform} make changes of any
|
||
118 | * previous attributes values.<br>
|
||
119 | *
|
||
120 | * If all {@link FeatureStoreTransform} affects only to attributes defition,
|
||
121 | * the {@link FeatureSet} performance can be better.
|
||
122 | *
|
||
123 | * @return
|
||
124 | */
|
||
125 | public boolean isTransformsOriginalValues(); |
||
126 | |||
127 | } |