protected FeatureMap.Entry createEntry(EStructuralFeature eStructuralFeature, Object value) { return FeatureMapUtil.createEntry(eStructuralFeature, value); }
protected FeatureMap.Entry createEntry(EStructuralFeature eStructuralFeature, Object value) { return FeatureMapUtil.createEntry(eStructuralFeature, value); }
protected FeatureMap.Entry createEntry(EStructuralFeature eStructuralFeature, Object value) { return FeatureMapUtil.createEntry(eStructuralFeature, value); }
protected FeatureMap.Entry createEntry(EStructuralFeature eStructuralFeature, Object value) { return FeatureMapUtil.createEntry(eStructuralFeature, value); }
public void add(EStructuralFeature eStructuralFeature, Object value) { doAdd(FeatureMapUtil.createEntry(eStructuralFeature, value)); } }
public void add(EStructuralFeature eStructuralFeature, Object value) { doAdd(FeatureMapUtil.createEntry(eStructuralFeature, value)); } }
public void add(EStructuralFeature eStructuralFeature, Object value) { doAdd(FeatureMapUtil.createEntry(eStructuralFeature, value)); } }
public void add(EStructuralFeature eStructuralFeature, Object value) { doAdd(FeatureMapUtil.createEntry(eStructuralFeature, value)); } }
@Override public void add(E value) { doAdd(FeatureMapUtil.createEntry(feature(), value)); }
@Override public void add(E1 value) { doAdd(FeatureMapUtil.createEntry(feature(), value)); }
@Override public void add(E1 value) { doAdd(FeatureMapUtil.createEntry(feature(), value)); }
@Override public void add(E value) { doAdd(FeatureMapUtil.createEntry(feature(), value)); }
public void add(int index, EStructuralFeature feature, Object value) { add(index, isFeatureMap(feature) ? value : createEntry(feature, value)); }
public void add(int index, EStructuralFeature feature, Object value) { add(index, isFeatureMap(feature) ? value : createEntry(feature, value)); }
public boolean addAll(int index, EStructuralFeature feature, Collection<?> values) { if (isFeatureMap(feature)) { @SuppressWarnings("unchecked") Collection<? extends Entry> entryValues = (Collection<? extends Entry>)values; return addAll(index, entryValues); } else { Collection<Entry> entries = new ArrayList<Entry>(values.size()); for (Object value : values) { entries.add(createEntry(feature, value)); } return addAll(index, entries); } }
public boolean addAll(int index, EStructuralFeature feature, Collection<?> values) { if (isFeatureMap(feature)) { @SuppressWarnings("unchecked") Collection<? extends Entry> entryValues = (Collection<? extends Entry>)values; return addAll(index, entryValues); } else { Collection<Entry> entries = new ArrayList<Entry>(values.size()); for (Object value : values) { entries.add(createEntry(feature, value)); } return addAll(index, entries); } }
@Override public IWrapperItemProvider copy() { Iterator<?> i = getCommand().getResult().iterator(); return new FeatureMapEntryWrapperItemProvider (FeatureMapUtil.createEntry(getEntryFeature(), i.next()), (EObject)owner, (EAttribute)feature, index, adapterFactory, resourceLocator); } };
public Object setValue(int index, Object value) { Entry entry = (Entry)featureMap.get(getEStructuralFeature(), index, false); set(index, createEntry(entry.getEStructuralFeature(), value)); return entry.getValue(); }
public Object setValue(int index, Object value) { Entry entry = (Entry)featureMap.get(getEStructuralFeature(), index, false); set(index, createEntry(entry.getEStructuralFeature(), value)); return entry.getValue(); }
/** * Returns a wrapped set command that returns as its affected object the replacement wrapper for the value. * A feature map entry is also created for the value, and used as the value of the set command. */ @Override protected Command createSetCommand(EditingDomain domain, Object owner, Object feature, Object value, int index) { // Check that the value is type compatible with the entry feature. // if (getEntryFeature().getEType().isInstance(value)) { FeatureMap.Entry entry = FeatureMapUtil.createEntry(getEntryFeature(), value); return new ReplacementAffectedObjectCommand(SetCommand.create(domain, this.owner, this.feature, entry, this.index)); } return UnexecutableCommand.INSTANCE; }