Revision 43020 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.impl/src/main/java/org/gvsig/fmap/dal/feature/impl/DefaultFeatureRules.java
DefaultFeatureRules.java | ||
---|---|---|
31 | 31 |
import org.gvsig.fmap.dal.feature.FeatureRule; |
32 | 32 |
import org.gvsig.fmap.dal.feature.FeatureRules; |
33 | 33 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
34 |
import org.gvsig.fmap.dal.feature.exception.ValidateFeaturesException; |
|
35 | 34 |
import org.slf4j.Logger; |
36 | 35 |
import org.slf4j.LoggerFactory; |
37 | 36 |
|
38 |
public class DefaultFeatureRules extends ArrayList implements FeatureRules { |
|
37 |
public class DefaultFeatureRules extends ArrayList<FeatureRule> implements FeatureRules {
|
|
39 | 38 |
|
40 | 39 |
private final static Logger logger = LoggerFactory.getLogger(DefaultFeatureRules.class); |
41 | 40 |
|
... | ... | |
44 | 43 |
*/ |
45 | 44 |
private static final long serialVersionUID = -8084546505498274121L; |
46 | 45 |
|
47 |
public FeatureRule add(FeatureRule rule) { |
|
48 |
if (super.add(rule)) { |
|
49 |
return rule; |
|
50 |
} |
|
51 |
return null; |
|
46 |
@Override |
|
47 |
public boolean add(FeatureRule rule) { |
|
48 |
return super.add(rule); |
|
52 | 49 |
} |
53 | 50 |
|
54 | 51 |
public FeatureRule getRule(int index) { |
Also available in: Unified diff