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

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" />?

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: 14286
Registered: July 2009
Senior Member

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

Need professional support for Xtext, Xpand, EMF?
Go to:
Twitter : @chrdietrich
Blog :
Previous Topic:[Acceleo] Acceleo and Rhapsody
Next Topic:XSDMetaModel
Goto Forum:

Current Time: Mon Jul 04 07:08:43 GMT 2022

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

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

Back to the top