A question about the code [message #625730] |
Fri, 14 December 2007 05:04 |
Sunfire Messages: 71 Registered: July 2009 |
Member |
|
|
Hi,
I have a question about the handleCrossReference method defined in
UML2Operations.FilteredUsageCrossReferencer (in uml2_1.1.1):
protected void handleCrossReference(EObject eObject) {
InternalEList filteredCrossReferences = new
FilteredECrossReferenceEList(eObject, filter);
...
}
The first statement in this method creates a FilteredECrossReferenceEList.
I would like to know how the argument filter is used by
FilteredECrossReferenceEList to get rid of some references. In the class
FilteredECrossReferenceEList, the only places that filter is used are in
the isIncluded method, but I did not see the
FilteredECrossReferenceEList's constructor explicitly calling the
isIncluded method. So where/how the filter is used during the creation of
an FilteredECrossReferenceEList?
Although this part of code exists in an old version of UML2, it should
help me understand how some EMF List interfaces are overriden and how a
filter can be used to optimize the search of contents, etc.
Your help would be greatly appreciated!
-- Sunny
|
|
|
Powered by
FUDForum. Page generated in 0.01986 seconds