org.eclipse.emf.ecore.util
Class FeatureMapUtil.BasicFeatureEIterator

java.lang.Object
  extended byorg.eclipse.emf.ecore.util.FeatureMapUtil.BasicFeatureEIterator
All Implemented Interfaces:
Iterator, ListIterator
Direct Known Subclasses:
BasicFeatureMap.FeatureEIterator, DelegatingFeatureMap.FeatureEIterator
Enclosing class:
FeatureMapUtil

public abstract static class FeatureMapUtil.BasicFeatureEIterator
extends Object
implements ListIterator


Field Summary
protected  int cursor
           
protected  int entryCursor
           
protected  EStructuralFeature eStructuralFeature
           
protected  int expectedModCount
           
protected  FeatureMap.Internal featureMap
           
protected  boolean isFeatureMap
           
protected  int lastCursor
           
protected  int prepared
           
protected  Object preparedResult
           
protected  FeatureMapUtil.Validator validator
           
 
Constructor Summary
FeatureMapUtil.BasicFeatureEIterator(EStructuralFeature eStructuralFeature, FeatureMap.Internal featureMap)
           
 
Method Summary
 void add(Object o)
           
protected  void checkModCount()
          Checks that the modification count is as expected.
protected  Object extractValue(FeatureMap.Entry entry)
           
 boolean hasNext()
           
 boolean hasPrevious()
           
 Object next()
           
 int nextIndex()
           
 Object previous()
           
 int previousIndex()
           
 void remove()
           
protected  boolean resolve()
           
protected abstract  boolean scanNext()
           
protected abstract  boolean scanPrevious()
           
 void set(Object o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

eStructuralFeature

protected final EStructuralFeature eStructuralFeature

featureMap

protected final FeatureMap.Internal featureMap

entryCursor

protected int entryCursor

cursor

protected int cursor

prepared

protected int prepared

preparedResult

protected Object preparedResult

expectedModCount

protected int expectedModCount

lastCursor

protected int lastCursor

isFeatureMap

protected boolean isFeatureMap

validator

protected FeatureMapUtil.Validator validator
Constructor Detail

FeatureMapUtil.BasicFeatureEIterator

public FeatureMapUtil.BasicFeatureEIterator(EStructuralFeature eStructuralFeature,
                                            FeatureMap.Internal featureMap)
Method Detail

resolve

protected boolean resolve()

extractValue

protected Object extractValue(FeatureMap.Entry entry)

hasNext

public boolean hasNext()
Specified by:
hasNext in interface ListIterator

scanNext

protected abstract boolean scanNext()

next

public Object next()
Specified by:
next in interface ListIterator

nextIndex

public int nextIndex()
Specified by:
nextIndex in interface ListIterator

hasPrevious

public boolean hasPrevious()
Specified by:
hasPrevious in interface ListIterator

scanPrevious

protected abstract boolean scanPrevious()

previous

public Object previous()
Specified by:
previous in interface ListIterator

previousIndex

public int previousIndex()
Specified by:
previousIndex in interface ListIterator

add

public void add(Object o)
Specified by:
add in interface ListIterator

remove

public void remove()
Specified by:
remove in interface ListIterator

set

public void set(Object o)
Specified by:
set in interface ListIterator

checkModCount

protected void checkModCount()
Checks that the modification count is as expected.

Throws:
ConcurrentModificationException - if the modification count is not as expected.

Copyright 2001-2006 IBM Corporation and others.
All Rights Reserved.