Revision 24844
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/FeatureRules.java | ||
---|---|---|
29 | 29 |
* @return |
30 | 30 |
* the {@link FeatureRule} found in the given index |
31 | 31 |
*/ |
32 |
|
|
32 | 33 |
public FeatureRule getRule(int index); |
33 | 34 |
|
34 | 35 |
/** |
36 |
* Adds a new rule to this FeatureRules. |
|
35 | 37 |
* |
36 | 38 |
* @param rule |
39 |
* the new rule to add. |
|
37 | 40 |
* @return |
41 |
* the added rule |
|
38 | 42 |
*/ |
39 | 43 |
public FeatureRule add(FeatureRule rule); |
40 | 44 |
|
45 |
/** |
|
46 |
* Returns the number of rules contained in this FeatureRules. |
|
47 |
* |
|
48 |
* @return |
|
49 |
* number of rules in this FeatureRules |
|
50 |
*/ |
|
41 | 51 |
public int size(); |
42 | 52 |
|
53 |
/** |
|
54 |
* Clears this FeatureRules from any rules. |
|
55 |
*/ |
|
43 | 56 |
public void clear(); |
44 | 57 |
|
58 |
/** |
|
59 |
* Removes the rule stored in the given index. |
|
60 |
* |
|
61 |
* @param index |
|
62 |
* index of the rule to remove. |
|
63 |
* @return |
|
64 |
* returns the removed rule |
|
65 |
*/ |
|
45 | 66 |
public Object remove(int index); |
46 | 67 |
|
68 |
/** |
|
69 |
* Removes the given rule from this FeatureRules. |
|
70 |
* |
|
71 |
* @param rule |
|
72 |
* FeatureRule to remove |
|
73 |
* @return |
|
74 |
* true indicates success, false indicates that it was not found. |
|
75 |
*/ |
|
47 | 76 |
public boolean remove(FeatureRule rule); |
48 | 77 |
|
78 |
/** |
|
79 |
* Returns an iterator over the available {@link FeatureRule}(s) |
|
80 |
* |
|
81 |
* @return |
|
82 |
* an iterator over the available {@link FeatureRule}(s) |
|
83 |
*/ |
|
49 | 84 |
public Iterator iterator(); |
50 | 85 |
|
86 |
/** |
|
87 |
* Returns a new copy of this FeatureRules. |
|
88 |
* |
|
89 |
* @return |
|
90 |
* a new copy of this FeatureRules. |
|
91 |
*/ |
|
51 | 92 |
public FeatureRules getCopy(); |
52 | 93 |
|
53 | 94 |
} |
Also available in: Unified diff