1 17 package org.eclipse.emf.ecore.util; 18 19 20 import java.util.Collection ; 21 import java.util.Iterator ; 22 import java.util.List ; 23 import java.util.ListIterator ; 24 25 import org.eclipse.emf.common.notify.NotificationChain; 26 import org.eclipse.emf.common.util.EList; 27 import org.eclipse.emf.ecore.EObject; 28 import org.eclipse.emf.ecore.EStructuralFeature; 29 30 31 34 public interface FeatureMap extends EList 35 { 36 39 public interface Entry 40 { 41 45 EStructuralFeature getEStructuralFeature(); 46 47 51 Object getValue(); 52 } 53 54 public interface ValueListIterator extends EContentsEList.FeatureListIterator 55 { 56 void add(EStructuralFeature eStructuralFeature, Object value); 57 } 58 59 ValueListIterator valueListIterator(); 60 ValueListIterator valueListIterator(int index); 61 62 EList list(EStructuralFeature feature); 63 64 EStructuralFeature getEStructuralFeature(int index); 65 Object getValue(int index); 66 Object setValue(int index, Object value); 67 68 Object get(EStructuralFeature feature, boolean resolve); 69 void set(EStructuralFeature feature, Object object); 70 boolean isSet(EStructuralFeature feature); 71 void unset(EStructuralFeature feature); 72 73 boolean add(EStructuralFeature feature, Object value); 74 void add(int index, EStructuralFeature feature, Object value); 75 76 boolean addAll(EStructuralFeature feature, Collection values); 77 boolean addAll(int index, EStructuralFeature feature, Collection values); 78 79 interface Internal extends FeatureMap, InternalEList, EStructuralFeature.Setting 80 { 81 int getModCount(); 82 EObject getEObject(); 83 84 Object resolveProxy(EStructuralFeature feature, int entryIndex, int index, Object object); 85 86 int size(EStructuralFeature feature); 87 boolean isEmpty(EStructuralFeature feature); 88 boolean contains(EStructuralFeature feature, Object object); 89 boolean containsAll(EStructuralFeature feature, Collection collection); 90 int indexOf(EStructuralFeature feature, Object object); 91 int lastIndexOf(EStructuralFeature feature, Object object); 92 Iterator iterator(EStructuralFeature feature); 93 ListIterator listIterator(EStructuralFeature feature); 94 ListIterator listIterator(EStructuralFeature feature, int index); 95 EStructuralFeature.Setting setting(EStructuralFeature feature); 98 List basicList(EStructuralFeature feature); 99 Iterator basicIterator(EStructuralFeature feature); 100 ListIterator basicListIterator(EStructuralFeature feature); 101 ListIterator basicListIterator(EStructuralFeature feature, int index); 102 Object [] toArray(EStructuralFeature feature); 103 Object [] toArray(EStructuralFeature feature, Object [] array); 104 void add(EStructuralFeature feature, int index, Object object); 105 boolean addAll(EStructuralFeature feature, int index, Collection collection); 106 void addUnique(EStructuralFeature feature, Object object); 107 void addUnique(EStructuralFeature feature, int index, Object object); 108 NotificationChain basicAdd(EStructuralFeature feature, Object object, NotificationChain notifications); 109 boolean remove(EStructuralFeature feature, Object object); 110 Object remove(EStructuralFeature feature, int index); 111 boolean removeAll(EStructuralFeature feature, Collection collection); 112 NotificationChain basicRemove(EStructuralFeature feature, Object object, NotificationChain notifications); 113 boolean retainAll(EStructuralFeature feature, Collection collection); 114 void clear(EStructuralFeature feature); 115 void move(EStructuralFeature feature, int index, Object object); 116 Object move(EStructuralFeature feature, int targetIndex, int sourceIndex); 117 Object get(EStructuralFeature feature, int index, boolean resolve); 118 Object set(EStructuralFeature feature, int index, Object object); 119 Object setUnique(EStructuralFeature feature, int index, Object object); 120 } 121 } 122 | Popular Tags |