Revision 44871 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/FeatureRules.java
FeatureRules.java | ||
---|---|---|
24 | 24 |
package org.gvsig.fmap.dal.feature; |
25 | 25 |
|
26 | 26 |
import java.util.Iterator; |
27 |
import org.gvsig.expressionevaluator.Expression; |
|
28 |
import org.gvsig.tools.persistence.Persistent; |
|
27 | 29 |
|
28 | 30 |
/** |
29 | 31 |
* This is a container for FeatureRules. |
... | ... | |
32 | 34 |
* the whole structure. |
33 | 35 |
* |
34 | 36 |
*/ |
35 |
public interface FeatureRules extends Iterable<FeatureRule> { |
|
37 |
public interface FeatureRules extends Iterable<FeatureRule>, Persistent {
|
|
36 | 38 |
|
37 | 39 |
/** |
38 | 40 |
* Returns an object given its index. |
... | ... | |
42 | 44 |
* @return |
43 | 45 |
* the object found in the given index |
44 | 46 |
*/ |
45 |
public Object get(int index);
|
|
47 |
public FeatureRule get(int index);
|
|
46 | 48 |
|
47 | 49 |
/** |
48 | 50 |
* Returns a {@link FeatureRule} given its index. |
... | ... | |
65 | 67 |
*/ |
66 | 68 |
public boolean add(FeatureRule rule); |
67 | 69 |
|
70 |
public boolean add(String name, String description, boolean checkAtUpdate, |
|
71 |
boolean checkAtFinishEdition, Expression expression); |
|
72 |
|
|
68 | 73 |
/** |
69 | 74 |
* Returns the number of rules contained in this FeatureRules. |
70 | 75 |
* |
... | ... | |
73 | 78 |
*/ |
74 | 79 |
public int size(); |
75 | 80 |
|
76 |
public boolean isEmpty();
|
|
81 |
public boolean isEmpty(); |
|
77 | 82 |
|
78 | 83 |
/** |
79 | 84 |
* Clears this FeatureRules from any rules. |
... | ... | |
88 | 93 |
* @return |
89 | 94 |
* returns the removed rule |
90 | 95 |
*/ |
91 |
public Object remove(int index);
|
|
96 |
public FeatureRule remove(int index);
|
|
92 | 97 |
|
93 | 98 |
/** |
94 | 99 |
* Removes the given rule from this FeatureRules. |
Also available in: Unified diff