org.eclipse.gef.editparts
Class AbstractEditPart.EditPolicyIterator

java.lang.Object
  extended byorg.eclipse.gef.editparts.AbstractEditPart.EditPolicyIterator
Enclosing class:
AbstractEditPart

protected static class AbstractEditPart.EditPolicyIterator
extends java.lang.Object

Iterates over a List of EditPolcies, skipping any null values encountered.


Constructor Summary
AbstractEditPart.EditPolicyIterator(java.util.List list)
          Constructs an Iterator for the given List.
 
Method Summary
 boolean hasNext()
          Availabilty of further EditPolicies is returned
 EditPolicy next()
          Returns the next non-null EditPolicy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractEditPart.EditPolicyIterator

public AbstractEditPart.EditPolicyIterator(java.util.List list)
Constructs an Iterator for the given List.

Parameters:
list - the list of policies.
Method Detail

next

public EditPolicy next()
Returns the next non-null EditPolicy.

Returns:
the next non-null EditPolicy.

hasNext

public boolean hasNext()
Availabilty of further EditPolicies is returned

Returns:
boolean representing availability of the next EditPolicy