Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow pattern substitution in use statement #239

Open
Nava2 opened this issue Aug 26, 2015 · 3 comments
Open

Allow pattern substitution in use statement #239

Nava2 opened this issue Aug 26, 2015 · 3 comments
Labels
Component-Metamodel Diffic-Med A non-trivial problem that may take over a week or may not be obvious how to fix or require analysis Priority-Medium This problem or request is likely to be of significant benefit if dealt with Status-Accepted Type-Enhancement

Comments

@Nava2
Copy link
Contributor

Nava2 commented Aug 26, 2015

Originally reported on Google Code with ID 340
Owned by @vahdat-ab


In a use statement add the ability to do pattern-based substitution.

This would allow reuse of generic model elements

See also issue 334 and issue 325


Reported by @umple on 2012-09-30 10:30:07

@Nava2
Copy link
Contributor Author

Nava2 commented Aug 26, 2015

The idea would be that you could say something like:

use Transport.ump vehicle=airplane, journey=flight;

Pattern matching could also be allowed as a further improvement.

As the file is being imported, the substitution would be done. Note that this would
add a few complications for generation of 'original' lines of ump files where the error
occurred during compilation.


Reported by @umple on 2012-12-31 18:00:53

  • Status changed: Accepted

@Nava2
Copy link
Contributor Author

Nava2 commented Aug 26, 2015

A lot of analysis needs to be done on the actual syntax and semantics before any development
is done on this.


Reported by @umple on 2013-05-01 02:14:37

@Nava2 Nava2 added Priority-Medium This problem or request is likely to be of significant benefit if dealt with Status-Accepted Component-Metamodel Type-Enhancement Diffic-Med A non-trivial problem that may take over a week or may not be obvious how to fix or require analysis labels Aug 26, 2015
@TimLethbridge
Copy link
Member

This can be done as part of the mixsets feature so it works for files and mixsets

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component-Metamodel Diffic-Med A non-trivial problem that may take over a week or may not be obvious how to fix or require analysis Priority-Medium This problem or request is likely to be of significant benefit if dealt with Status-Accepted Type-Enhancement
Projects
None yet
Development

No branches or pull requests

3 participants