1 | FeatureMapUtil.Validator validator = FeatureMapUtil.getValidator(owner.eClass(), entryFeature);↵ | | 1 | FeatureMapUtil.Validator validator = FeatureMapUtil.getValidator(owner.eClass(), entryFeature);↵
|
2 | Entry [] entries = (Entry[])data;↵ | | 2 | Entry [] entries = (Entry[])data;↵
|
3 | for (int i = 0; i < size; ++i)↵ | | 3 | for (int i = 0; i < size; ++i)↵
|
4 | {↵ | | 4 | {↵
|
5 | Entry otherEntry = entries[i];↵ | | 5 | Entry otherEntry = entries[i];↵
|
6 | if (validator.isValid(otherEntry.getEStructuralFeature()))↵ | | 6 | if (validator.isValid(otherEntry.getEStructuralFeature()) && i != index)↵
|
7 | {↵ | | 7 | {↵
|
8 | throw new IllegalArgumentException("The multiplicity constraint is violated");↵ | | 8 | throw new IllegalArgumentException("The multiplicity constraint is violated");↵
|
9 | }↵ | | 9 | }↵
|
10 | } | | 10 | }
|