|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectptolemy.kernel.util.NamedObj.ContainedObjectsIterator
ptolemy.kernel.Entity.ContainedObjectsIterator
ptolemy.kernel.CompositeEntity.ContainedObjectsIterator
protected class CompositeEntity.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, then entities, then relations.
| Field Summary | |
|---|---|
private java.util.Iterator |
_classListIterator
|
private java.util.Iterator |
_entityListIterator
|
private java.util.Iterator |
_relationListIterator
|
| Constructor Summary | |
|---|---|
CompositeEntity.ContainedObjectsIterator()
Create an iterator over all the contained objects, which for CompositeEntities are attributes, ports, classes entities, and relations. |
|
| 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 _classListIterator
private java.util.Iterator _entityListIterator
private java.util.Iterator _relationListIterator
| Constructor Detail |
|---|
public CompositeEntity.ContainedObjectsIterator()
| Method Detail |
|---|
public boolean hasNext()
hasNext in interface java.util.IteratorhasNext in class Entity.ContainedObjectsIteratorpublic java.lang.Object next()
next in interface java.util.Iteratornext in class Entity.ContainedObjectsIteratorpublic void remove()
remove in interface java.util.Iteratorremove in class Entity.ContainedObjectsIterator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||