|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectptolemy.kernel.util.NamedObj.ContainedObjectsIterator
ptolemy.kernel.Entity.ContainedObjectsIterator
protected class Entity.ContainedObjectsIterator
This class is an iterator over all the contained objects (all instances of NamedObj). In this class, the contained objects are attributes first, then ports. In derived classes, they include relations, and entities as well. The user of this class should have read access on the workspace and hold it for the duration of the use of the iterator. Moreover, it should not modify the port or attribute list while using the iterator or it will get a ConcurrentModificationException.
Field Summary | |
---|---|
private java.util.Iterator |
_portListIterator
|
Constructor Summary | |
---|---|
Entity.ContainedObjectsIterator()
Create an iterator over all the contained objects, which for Entities are attributes and then ports. |
Method Summary | |
---|---|
boolean |
hasNext()
Return true if the iteration has more elements. |
java.lang.Object |
next()
Return the next element in the iteration. |
void |
remove()
The remove() method is not supported because is is not supported in NamedObj.ContainedObjectsIterator.remove(). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.Iterator _portListIterator
Constructor Detail |
---|
public Entity.ContainedObjectsIterator()
Method Detail |
---|
public boolean hasNext()
hasNext
in interface java.util.Iterator
hasNext
in class NamedObj.ContainedObjectsIterator
public java.lang.Object next()
next
in interface java.util.Iterator
next
in class NamedObj.ContainedObjectsIterator
public void remove()
remove
in interface java.util.Iterator
remove
in class NamedObj.ContainedObjectsIterator
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |