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 15:20 Go to next message
Marco  is currently offline Marco
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 16:17 Go to previous message
Christian Dietrich is currently offline Christian Dietrich
Messages: 5848
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
Previous Topic:[Acceleo] Acceleo and Rhapsody
Next Topic:XSDMetaModel
Goto Forum:
  


Current Time: Fri Apr 18 19:34:53 EDT 2014

Powered by FUDForum. Page generated in 0.01703 seconds