/**
* @see org.andromda.metafacades.uml.PackageDecorator#handleGetSubPackages()
*/
protected Collection handleGetSubPackages()
{
return new FilteredCollection(metaObject.getOwnedElement())
{
public boolean evaluate(Object object)
{
return object instanceof org.omg.uml.modelmanagement.UmlPackage;
}
};
}
Matthias Bohlen wrote:
Hi all,
I noticed that when I invoke getSubPackages() on a PackageFacade, I get an empty collection. The source code says:
import org.omg.uml.UmlPackage;
protected Collection handleGetSubPackages() { return new FilteredCollection(metaObject.getOwnedElement()) { public boolean evaluate(Object object) { return object instanceof UmlPackage; } }; }
I think, the collection is filtered on elements of the wrong class. It should be org.omg.uml.modelmanagement.UmlPackage instead of org.omg.uml.UmlPackage as suggested by the import statement.
This is why my collection is empty, right?
Cheers... Matthias
---
Matthias Bohlen "Consulting that helps project teams to succeed..."
Internet: http://www.mbohlen.de/ [EMAIL PROTECTED]
Phone: +49 (170) 772 8545
------------------------------------------------------- SF.Net email is sponsored by: Tell us your software development plans! Take this survey and enter to win a one-year sub to SourceForge.net Plus IDC's 2005 look-ahead and a copy of this survey Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix _______________________________________________ Andromda-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/andromda-user
------------------------------------------------------- SF.Net email is sponsored by: Tell us your software development plans! Take this survey and enter to win a one-year sub to SourceForge.net Plus IDC's 2005 look-ahead and a copy of this survey Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix _______________________________________________ Andromda-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/andromda-user
