org.argouml.uml.generator
Class ParserDisplay.ModelElementInfoList
java.lang.Object
org.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.
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 |
theList
private Collection theList
- the list that we maintain
ParserDisplay.ModelElementInfoList
ParserDisplay.ModelElementInfoList(Collection c)
- The constructor.
- Parameters:
c
- the collection of the UML objects
that were present before
add
void add(Object obj,
boolean r)
- Parameters:
obj
- the UML objectr
- 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.