Skip to main content



      Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » xpand2::Type
xpand2::Type [message #622284] Mon, 08 March 2010 05:27
Eclipse UserFriend
Hi,

I'm trying to implement some simple checks using the Check language for
a taylored model used to generate code (the checks assure the valid
application of stereotypes). Now, my problem is, that my custom
stereotypes, defined inside of an own UML profile file and which is
loaded in the check component of the workflow with:

<component id="ConsistencyChecker"
class="org.eclipse.xtend.check.CheckComponent">
<metaModel class="org.eclipse.xtend.typesystem.emf.EmfMetaModel">
<metaModelPackage value="org.eclipse.emf.ecore.EcorePackage"/>
</metaModel>
<metaModel class="org.eclipse.xtend.typesystem.uml2.UML2MetaModel"/>
<metaModel id="profile"
class="org.eclipse.xtend.typesystem.uml2.profile.ProfileMetaModel ">
<profile value="tts.profile.uml"/>
</metaModel>
<checkFile value="info::teststories::check::checks::Generator"/>
<emfAllChildrenSlot value="model"/>
</component>
Now, inside my check file I want to test whether all stereotypes have
been applied properly by invoking isStereotypeApplied() on the relevant
model elements. But the problem is, that now my stereotypes are not
defined with "uml::Stereotype" as underlying type, but with
"xpand2::Type". For sure, now my checks don't work as I don't have the
stereoytpes available I need for checking. Is there any solution or
workaround for that my stereotypes are actually loaded as
"uml::Stereotype" instances and not anymore "xpand2::Type"?

Thanks in advance!

Cheers,

Philipp
Previous Topic:Re: XText: cant find main class org.eclipse.emf.mwe.core.WorkflowRunner
Next Topic:Which elements are classified as "unmatched"
Goto Forum:
  


Current Time: Mon Jul 14 05:17:14 EDT 2025

Powered by FUDForum. Page generated in 0.06361 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top