[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.mdt.uml2] Re: Can UML2 profiles/models/instances be manipulated via reflective EMF?

Thanks James,

your explanations about the different models helped me to better
understand these things.

Best,
Marc

>Hi Marc,
>
>... don't be afraid of asking a potentially stupid question...
>
>
>Q:  Another question is if it will be possible to manipulate all UML stuff
>(models, profiles, instances of profiles) purely reflectively via EMF?
>
>A: Yes indeed you can use purely reflective EMF api to get info about UML 
>models.
>     For some uml::NamedElement you can reference it via EObject and do a 
>eObject.eClass().getEAllAttributes()   then do something like 
>eAttribute.getName() if the name of the attribute is something from UML you 
>can then do a eObject.eGet(eAttribute)   etc...
>
>
>
>Q: Now I had a look at some of the uml2 plugins and found the following
>resources: Ecore.metamodel.uml, Ecore.profile.uml, UML.metamodel.uml,
>UML2.profile.uml as well as Standard.profile.uml
> Can someone give me some insight about how these metamodels/profiles are 
>used in the implementation? And where I can find the ecore model
>of UML?
>
>A: The Ecore.profile.uml is used to add extra ecore concepts to uml models.
>     The UML2.profile.uml is used to keep track of missing information 
>during migration.
>     The UML.metamodel.uml is used during profile creation.  It is the 
>referenced UML metamodel.
>      The ecore model of UML is found in the org.eclipse.uml2.uml/model 
>directory.
>
>I'll dig up some more specific information on these and post later.
>
>- James.
>
>
>
>"Marc Moser" <moser@xxxxxxxxxxxx> wrote in message 
>news:bckeg45m4ink27vrmvjavlk3i9til6o24k@xxxxxxxxxx
>> Hi,
>>
>> I have some (potentially stupid :-)...) questions about the UML2
>> implementation.
>>
>> I'm currently using EMF together with OCL for all modeling activities.
>> I don't have experience with the UML2 implementation yet.
>> Now, there are cases where I would like to interoperate with UML
>> profile based models. As an example, we might consider a repository
>> that accepts content standardized by UML profiles. In these cases, I
>> would still want to work with EMF/OCL, but then transform instances of
>> my ecore meta-model into instances of UML profiles for persistence.
>> Thus, I would like to specify some kind of transformation rules. I do
>> not want to generate neither the ecore based meta-model nor the UML
>> profiles, they are both supposed to exist.
>>
>> Now I had a look at some of the uml2 plugins and found the following
>> resources: Ecore.metamodel.uml, Ecore.profile.uml, UML.metamodel.uml,
>> UML2.profile.uml as well as Standard.profile.uml
>>
>> Can someone give me some insight about how these metamodels/profiles
>> are used in the implementation? And where I can find the ecore model
>> of UML?
>>
>> Another question is if it will be possible to manipulate all UML stuff
>> (models, profiles, instances of profiles) purely reflectively via EMF?
>>
>> Thanks for your help,
>> Marc 
>