xpand2::Type [message #622284] |
Mon, 08 March 2010 10:27 |
Philipp Zech Messages: 96 Registered: July 2009 |
Member |
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.01571 seconds