org.eclipse.stp.core.infrastructure.emf
Class FeatureAwareList
java.lang.Object
org.eclipse.stp.core.infrastructure.emf.FeatureAwareList
public class FeatureAwareList
- extends java.lang.Object
This is a specialized list which is used for dealing with substitution groups
when serializing to XML. This list works in conjunction with
FeatureAdapter
.
- Since:
- 1.0
- See Also:
FeatureAdapter
Constructor Summary |
FeatureAwareList(EStructuralFeature anAbstractFeature,
FeatureMap.Internal aFeatureMap)
Create a specialized EList which can is used to automatically
detect and use the proper EStructuralFeature defined for a
substitution group element for any given EObject . |
Method Summary |
void |
add(int index,
java.lang.Object o)
|
boolean |
add(java.lang.Object o)
|
boolean |
addAll(java.util.Collection c)
|
boolean |
addAll(int index,
java.util.Collection c)
|
void |
addUnique(int index,
java.lang.Object object)
|
void |
addUnique(java.lang.Object object)
|
NotificationChain |
basicAdd(java.lang.Object object,
NotificationChain notifications)
|
java.lang.Object |
basicGet(int index)
|
java.util.Iterator |
basicIterator()
|
java.util.List |
basicList()
|
java.util.ListIterator |
basicListIterator()
|
java.util.ListIterator |
basicListIterator(int index)
|
NotificationChain |
basicRemove(java.lang.Object object,
NotificationChain notifications)
|
void |
clear()
|
boolean |
contains(java.lang.Object o)
|
boolean |
containsAll(java.util.Collection c)
|
boolean |
equals(java.lang.Object o)
|
java.lang.Object |
get(int index)
|
int |
hashCode()
|
int |
indexOf(java.lang.Object o)
|
boolean |
isEmpty()
|
java.util.Iterator |
iterator()
|
int |
lastIndexOf(java.lang.Object o)
|
java.util.ListIterator |
listIterator()
|
java.util.ListIterator |
listIterator(int index)
|
java.lang.Object |
move(int newPosition,
int oldPosition)
|
void |
move(int newPosition,
java.lang.Object object)
|
java.lang.Object |
remove(int index)
|
boolean |
remove(java.lang.Object o)
|
boolean |
removeAll(java.util.Collection c)
|
boolean |
retainAll(java.util.Collection c)
|
java.lang.Object |
set(int index,
java.lang.Object element)
|
java.lang.Object |
setUnique(int index,
java.lang.Object object)
|
int |
size()
|
java.util.List |
subList(int fromIndex,
int toIndex)
|
java.lang.Object[] |
toArray()
|
java.lang.Object[] |
toArray(java.lang.Object[] a)
|
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
FeatureAwareList
public FeatureAwareList(EStructuralFeature anAbstractFeature,
FeatureMap.Internal aFeatureMap)
- Create a specialized
EList
which can is used to automatically
detect and use the proper EStructuralFeature
defined for a
substitution group element for any given EObject
.
- Parameters:
anAbstractFeature
- -
This is the EStructuralFeature which is the base feature for the
substitution group.aFeatureMap
- -
This is the FeatureMap for managing the substitution group.
add
public void add(int index,
java.lang.Object o)
add
public boolean add(java.lang.Object o)
addAll
public boolean addAll(java.util.Collection c)
addAll
public boolean addAll(int index,
java.util.Collection c)
clear
public void clear()
contains
public boolean contains(java.lang.Object o)
containsAll
public boolean containsAll(java.util.Collection c)
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
get
public java.lang.Object get(int index)
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
indexOf
public int indexOf(java.lang.Object o)
isEmpty
public boolean isEmpty()
iterator
public java.util.Iterator iterator()
lastIndexOf
public int lastIndexOf(java.lang.Object o)
listIterator
public java.util.ListIterator listIterator()
listIterator
public java.util.ListIterator listIterator(int index)
remove
public java.lang.Object remove(int index)
remove
public boolean remove(java.lang.Object o)
removeAll
public boolean removeAll(java.util.Collection c)
retainAll
public boolean retainAll(java.util.Collection c)
set
public java.lang.Object set(int index,
java.lang.Object element)
size
public int size()
subList
public java.util.List subList(int fromIndex,
int toIndex)
toArray
public java.lang.Object[] toArray()
toArray
public java.lang.Object[] toArray(java.lang.Object[] a)
move
public void move(int newPosition,
java.lang.Object object)
move
public java.lang.Object move(int newPosition,
int oldPosition)
basicGet
public java.lang.Object basicGet(int index)
basicList
public java.util.List basicList()
basicIterator
public java.util.Iterator basicIterator()
basicListIterator
public java.util.ListIterator basicListIterator()
basicListIterator
public java.util.ListIterator basicListIterator(int index)
basicRemove
public NotificationChain basicRemove(java.lang.Object object,
NotificationChain notifications)
basicAdd
public NotificationChain basicAdd(java.lang.Object object,
NotificationChain notifications)
addUnique
public void addUnique(java.lang.Object object)
addUnique
public void addUnique(int index,
java.lang.Object object)
setUnique
public java.lang.Object setUnique(int index,
java.lang.Object object)