Revision 39605 branches/v2_0_0_prep/extensions/extEditing/src/org/gvsig/editing/EditionManager.java
EditionManager.java | ||
---|---|---|
53 | 53 |
import org.gvsig.fmap.dal.feature.FeatureSelection; |
54 | 54 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
55 | 55 |
import org.gvsig.fmap.dal.feature.FeatureType; |
56 |
import org.gvsig.fmap.dal.feature.rule.CheckMandatoryAttributesRule; |
|
56 | 57 |
import org.gvsig.fmap.geom.Geometry; |
57 | 58 |
import org.gvsig.fmap.geom.Geometry.SUBTYPES; |
58 | 59 |
import org.gvsig.fmap.geom.GeometryLocator; |
... | ... | |
309 | 310 |
// Nothing to do |
310 | 311 |
} |
311 | 312 |
|
312 |
public class CheckMandatoryAttributtes extends AbstractFeatureRule { |
|
313 |
public class DefaultCheckMandatoryAttributes extends AbstractFeatureRule |
|
314 |
implements CheckMandatoryAttributesRule { |
|
313 | 315 |
|
314 |
protected CheckMandatoryAttributtes() {
|
|
316 |
protected DefaultCheckMandatoryAttributes() {
|
|
315 | 317 |
super("CheckMandatoryAttributtes", "CheckMandatoryAttributtes"); |
316 | 318 |
} |
317 | 319 |
|
... | ... | |
439 | 441 |
FeatureRules featureRules = featureType.getRules(); |
440 | 442 |
for (Iterator it = featureRules.iterator(); it.hasNext();) { |
441 | 443 |
FeatureRule rule = (FeatureRule) it.next(); |
442 |
if (rule instanceof CheckMandatoryAttributtes) {
|
|
444 |
if (rule instanceof CheckMandatoryAttributesRule) {
|
|
443 | 445 |
return; |
444 | 446 |
} |
445 | 447 |
} |
446 |
featureRules.add(new CheckMandatoryAttributtes());
|
|
448 |
featureRules.add(new DefaultCheckMandatoryAttributes());
|
|
447 | 449 |
} catch (DataException e) { |
448 | 450 |
throw new RuntimeException(e); |
449 | 451 |
} |
Also available in: Unified diff