Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » element.getXYZs(String name, boolean ignoreCase, EClass eclass)
element.getXYZs(String name, boolean ignoreCase, EClass eclass) [message #892119] Wed, 27 June 2012 03:16 Go to previous message
Eclipse User
Hi UMLer,

I was wondering whether it would make sense to generate convenience methods
for containment associations to retrieve a list of elements instead of
merely single elements.

For example.

Namespace.getMember(String name, boolean ignoreCase, EClass eclass)
retrieves one element, why not having the same very convenient thing for
multiple elements?

Namespace.getMembers(String name, boolean ignoreCase, EClass eclass), and in
work e.g. classifier.getMembers(null, true, UMLPackage.Literals.CONSTRAINT)
to retrieve all constraints for the classifier?

Before filing this as an issue in Bugzilla, I wanted to figure out what the
developers think about this (and it might be the case that it is already
present in UML2 4.0.0, since I'm still working on UML2 3.2.0). If the dev
teams agrees I'm happy to put this into Bugzilla as enhancement request.

Regards,
Marc-Florian
 
Read Message
Read Message
Previous Topic:How to get the type of the element
Next Topic:UML2 4.0 and ActivityNodes
Goto Forum:
  


Current Time: Wed May 22 04:34:18 EDT 2013

Powered by FUDForum. Page generated in 0.01741 seconds