public BasicFeatureMap(InternalEObject owner, int featureID, EStructuralFeature eStructuralFeature) { super(Entry.Internal.class, owner, featureID); featureMapValidator = FeatureMapUtil.getValidator(owner.eClass(), eStructuralFeature); }
public BasicFeatureMap(InternalEObject owner, int featureID, EStructuralFeature eStructuralFeature) { super(Entry.Internal.class, owner, featureID); featureMapValidator = FeatureMapUtil.getValidator(owner.eClass(), eStructuralFeature); }
public DelegatingFeatureMap(InternalEObject owner, EStructuralFeature eStructuralFeature) { super(owner); this.eStructuralFeature = eStructuralFeature; featureMapValidator = FeatureMapUtil.getValidator(owner.eClass(), getEStructuralFeature()); }
public BasicFeatureMap(InternalEObject owner, int featureID) { super(Entry.Internal.class, owner, featureID); featureMapValidator = FeatureMapUtil.getValidator(owner.eClass(), getEStructuralFeature()); }
public BasicFeatureMap(InternalEObject owner, int featureID) { super(Entry.Internal.class, owner, featureID); featureMapValidator = FeatureMapUtil.getValidator(owner.eClass(), getEStructuralFeature()); }
public DelegatingFeatureMap(InternalEObject owner, EStructuralFeature eStructuralFeature) { super(owner); this.eStructuralFeature = eStructuralFeature; featureMapValidator = FeatureMapUtil.getValidator(owner.eClass(), getEStructuralFeature()); }
public BasicFeatureEIterator(EStructuralFeature eStructuralFeature, FeatureMap.Internal featureMap) { this.eStructuralFeature = eStructuralFeature; this.featureMap = featureMap; expectedModCount = featureMap.getModCount(); isFeatureMap = isFeatureMap(eStructuralFeature); validator = getValidator(featureMap.getEObject().eClass(), eStructuralFeature); }
public BasicFeatureEIterator(EStructuralFeature eStructuralFeature, FeatureMap.Internal featureMap) { this.eStructuralFeature = eStructuralFeature; this.featureMap = featureMap; expectedModCount = featureMap.getModCount(); isFeatureMap = isFeatureMap(eStructuralFeature); validator = getValidator(featureMap.getEObject().eClass(), eStructuralFeature); }
public boolean isEmpty(EStructuralFeature feature) { FeatureMapUtil.Validator validator = FeatureMapUtil.getValidator(owner.eClass(), feature); Entry [] entries = (Entry[])data; for (int i = 0; i < size; ++i) { Entry entry = entries[i]; if (validator.isValid(entry.getEStructuralFeature())) { return false; } } return true; }
public int size(EStructuralFeature feature) { FeatureMapUtil.Validator validator = FeatureMapUtil.getValidator(owner.eClass(), feature); int result = 0; Entry [] entries = (Entry[])data; for (int i = 0; i < size; ++i) { Entry entry = entries[i]; if (validator.isValid(entry.getEStructuralFeature())) { ++result; } } return result; }
public boolean isEmpty(EStructuralFeature feature) { FeatureMapUtil.Validator validator = FeatureMapUtil.getValidator(owner.eClass(), feature); Entry [] entries = (Entry[])data; for (int i = 0; i < size; ++i) { Entry entry = entries[i]; if (validator.isValid(entry.getEStructuralFeature())) { return false; } } return true; }
public int size(EStructuralFeature feature) { FeatureMapUtil.Validator validator = FeatureMapUtil.getValidator(owner.eClass(), feature); int result = 0; Entry [] entries = (Entry[])data; for (int i = 0; i < size; ++i) { Entry entry = entries[i]; if (validator.isValid(entry.getEStructuralFeature())) { ++result; } } return result; }
public DelegatingFeatureMap(InternalEObject owner, int featureID) { super(owner); this.eStructuralFeature = owner.eClass().getEStructuralFeature(featureID); featureMapValidator = FeatureMapUtil.getValidator(owner.eClass(), getEStructuralFeature()); }
public DelegatingFeatureMap(InternalEObject owner, int featureID) { super(owner); this.eStructuralFeature = owner.eClass().getEStructuralFeature(featureID); featureMapValidator = FeatureMapUtil.getValidator(owner.eClass(), getEStructuralFeature()); }
public boolean retainAll(EStructuralFeature feature, Collection<?> collection) { boolean isFeatureMap = FeatureMapUtil.isFeatureMap(feature); FeatureMapUtil.Validator validator = FeatureMapUtil.getValidator(owner.eClass(), feature); List<Entry> entryCollection = new BasicEList<Entry>(collection.size()); for (int i = delegateSize(); --i >= 0; ) { Entry entry = delegateGet(i); if (validator.isValid(entry.getEStructuralFeature())) { if (!collection.contains(isFeatureMap ? entry : entry.getValue())) { entryCollection.add(entry); } } } return removeAll(entryCollection); }
public boolean isEmpty(EStructuralFeature feature) { FeatureMapUtil.Validator validator = FeatureMapUtil.getValidator(owner.eClass(), feature); for (int i = 0, size = delegateSize(); i < size; ++i) { Entry entry = delegateGet(i); if (validator.isValid(entry.getEStructuralFeature())) { return false; } } return true; }
public int size(EStructuralFeature feature) { FeatureMapUtil.Validator validator = FeatureMapUtil.getValidator(owner.eClass(), feature); int result = 0; for (int i = 0, size = delegateSize(); i < size; ++i) { Entry entry = delegateGet(i); if (validator.isValid(entry.getEStructuralFeature())) { ++result; } } return result; }
public boolean isEmpty(EStructuralFeature feature) { FeatureMapUtil.Validator validator = FeatureMapUtil.getValidator(owner.eClass(), feature); for (int i = 0, size = delegateSize(); i < size; ++i) { Entry entry = delegateGet(i); if (validator.isValid(entry.getEStructuralFeature())) { return false; } } return true; }
public int size(EStructuralFeature feature) { FeatureMapUtil.Validator validator = FeatureMapUtil.getValidator(owner.eClass(), feature); int result = 0; for (int i = 0, size = delegateSize(); i < size; ++i) { Entry entry = delegateGet(i); if (validator.isValid(entry.getEStructuralFeature())) { ++result; } } return result; }
public Object remove(EStructuralFeature feature, int index) { FeatureMapUtil.Validator validator = FeatureMapUtil.getValidator(owner.eClass(), feature); int count = 0; for (int i = 0, size = delegateSize(); i < size; ++i) { Entry entry = delegateGet(i); if (validator.isValid(entry.getEStructuralFeature())) { if (count == index) { remove(i); return FeatureMapUtil.isFeatureMap(feature) ? entry : entry.getValue(); } ++count; } } throw new IndexOutOfBoundsException("index=" + index + ", size=" + count); }