org.argouml.uml.generator
Class ParserDisplay.ModelElementInfoList

java.lang.Object
  extended byorg.argouml.uml.generator.ParserDisplay.ModelElementInfoList
Enclosing class:
ParserDisplay

class ParserDisplay.ModelElementInfoList
extends Object

This class manages a list of UML modelelements that existed before and after the parseXxxxx() function was called. It has all the knowledge to deal with additions and removals.


Nested Class Summary
(package private)  class ParserDisplay.ModelElementInfoList.InfoItem
          An item in a list, maintains all info about one UML object, its generated version (i.e.
 
Field Summary
private  Collection theList
          the list that we maintain
 
Constructor Summary
(package private) ParserDisplay.ModelElementInfoList(Collection c)
          The constructor.
 
Method Summary
(package private)  void add(Object obj, boolean r)
           
(package private)  boolean checkRetain(String line)
          Check the given textual description, and if already present in the list, then retain it.
(package private)  Collection finalisedList()
          Finish the procedure, by deleting the UML model items that are not to be retained, and return a collection of the ones to be retained.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theList

private Collection theList
the list that we maintain

Constructor Detail

ParserDisplay.ModelElementInfoList

ParserDisplay.ModelElementInfoList(Collection c)
The constructor.

Parameters:
c - the collection of the UML objects that were present before
Method Detail

add

void add(Object obj,
         boolean r)
Parameters:
obj - the UML object
r - true if this UML object needs to be retained

checkRetain

boolean checkRetain(String line)
Check the given textual description, and if already present in the list, then retain it.

Parameters:
line - the given textual description
Returns:
true if the item was already present in the list

finalisedList

Collection finalisedList()
Finish the procedure, by deleting the UML model items that are not to be retained, and return a collection of the ones to be retained. This method should only be called once!

Returns:
the UML objects that survive.


ArgoUML © 1996-2004 (20050222)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook