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 @ 40559
History | View | Annotate | Download (3.25 KB)
1 |
/**
|
---|---|
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 |
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 |
public interface FeatureStoreTransforms extends Cloneable { |
39 |
|
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 |
public Iterator iterator(); |
88 |
|
89 |
/**
|
90 |
* Empties this container.
|
91 |
*
|
92 |
*/
|
93 |
public void clear(); |
94 |
|
95 |
/**
|
96 |
* Removes the {@link FeatureStoreTransform} given its index.
|
97 |
*
|
98 |
* @param index
|
99 |
* the position of the {@link FeatureStoreTransform} to remove.
|
100 |
* @return
|
101 |
* the removed object
|
102 |
*/
|
103 |
public Object remove(int index); |
104 |
|
105 |
/**
|
106 |
* Removes the given {@link FeatureStoreTransform}.
|
107 |
*
|
108 |
* @param transform
|
109 |
* {@link FeatureStoreTransform} to remove
|
110 |
* @return
|
111 |
* true if the transform was successfully removed, false if not.
|
112 |
*/
|
113 |
public boolean remove(FeatureStoreTransform transform); |
114 |
|
115 |
/**
|
116 |
* Retruns true if any {@link FeatureStoreTransform} make changes of any
|
117 |
* previous attributes values.<br>
|
118 |
*
|
119 |
* If all {@link FeatureStoreTransform} affects only to attributes defition,
|
120 |
* the {@link FeatureSet} performance can be better.
|
121 |
*
|
122 |
* @return
|
123 |
*/
|
124 |
public boolean isTransformsOriginalValues(); |
125 |
|
126 |
} |