Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Access XSD model from Xpand java extensions
icon5.gif  Access XSD model from Xpand java extensions [message #498424] Mon, 16 November 2009 20:20 Go to next message
Marco  is currently offline Marco Friend
Messages: 216
Registered: August 2009
Senior Member
Hi,

Is there a way to import the types generated by the XSD adapter in the java extensions?

It is easy to import the model in Xpand and Xtend. But how can I access the specific types in java extensions? There I cannot just import metamodel.

Do I need <registerPackagesGlobally value="true" />?

br
Marco
Re: Access XSD model from Xpand java extensions [message #498648 is a reply to message #498424] Tue, 17 November 2009 21:17 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
hello

the xsd metamodel works with dynamic emf so there are no physical (java) classes (generated) you could use in your java extensions. but of cource you can use org.eclipse.emf.ecore.impl.DynamicEObjectImpl which is the java type of the elements you work with in your xpand templates / xtend files


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:[Acceleo] Acceleo and Rhapsody
Next Topic:XSDMetaModel
Goto Forum:
  


Current Time: Fri Apr 26 06:54:39 GMT 2024

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

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

Back to the top