org.eclipse.emf.ecore.util
Class EcoreUtil.FilteredSettingsIterator
java.lang.Object
org.eclipse.emf.ecore.util.EcoreUtil.FilteredSettingsIterator
- All Implemented Interfaces:
- Iterator
- Enclosing class:
- EcoreUtil
- public static class EcoreUtil.FilteredSettingsIterator
- extends Object
- implements Iterator
An iterator over settings
that filters out the ones that aren't of interest.
If an EReference
is specified,
the iterator will only yield settings with that as their feature
.
If an EClass
is specified,
the iterator will only yield settings with an object
of that type.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
list
protected List list
size
protected int size
index
protected int index
iterator
protected Iterator iterator
preparedResult
protected EStructuralFeature.Setting preparedResult
eReference
protected EReference eReference
eClass
protected EClass eClass
EcoreUtil.FilteredSettingsIterator
public EcoreUtil.FilteredSettingsIterator(List list,
EReference eReference,
EClass eClass)
EcoreUtil.FilteredSettingsIterator
public EcoreUtil.FilteredSettingsIterator(Collection collection,
EReference eReference,
EClass eClass)
EcoreUtil.FilteredSettingsIterator
public EcoreUtil.FilteredSettingsIterator(Iterator iterator,
EReference eReference,
EClass eClass)
isIncluded
protected boolean isIncluded(EStructuralFeature.Setting setting)
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator
next
public Object next()
- Specified by:
next
in interface Iterator
yield
protected Object yield(EStructuralFeature.Setting setting)
remove
public void remove()
- Specified by:
remove
in interface Iterator