Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Operation Parameter Type not in Ecore(How can you use other java classes as type of a parameter)
Operation Parameter Type not in Ecore [message #741399] Wed, 19 October 2011 13:46 Go to next message
Daniel Winkels is currently offline Daniel WinkelsFriend
Messages: 19
Registered: October 2010
Junior Member
Hello,

i have a class "XMLToFieldMapper" that should extract values from an XML Document by an operation "read(Document)". Is there a possibility to add org.w3c.dom.Document as parameter type to the Operation?

Thank you for your help!

Daniel
Re: Operation Parameter Type not in Ecore [message #741409 is a reply to message #741399] Wed, 19 October 2011 13:58 Go to previous messageGo to next message
Daniel Winkels is currently offline Daniel WinkelsFriend
Messages: 19
Registered: October 2010
Junior Member
OK - i think i just found the solution. When i am right, i just model an eDataType where instanceTypeName="org.w3c.dom.Document". The name is just what i want it to be like "XMLDocument". Then i can use it.
Re: Operation Parameter Type not in Ecore [message #741415 is a reply to message #741409] Wed, 19 October 2011 14:02 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Daniel,

Yes, you can use EDataType to create wrappers for any Java type.

On 19/10/2011 3:58 PM, Daniel Winkels wrote:
> OK - i think i just found the solution. When i am right, i just model
> an eDataType where instanceTypeName="org.w3c.dom.Document". The name
> is just what i want it to be like "XMLDocument". Then i can use it.


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:emf.Ecore2Java Ant Task generates invalid genmodel when referencing other genmodels
Next Topic:How to update the model from code
Goto Forum:
  


Current Time: Fri Apr 19 14:01:02 GMT 2024

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

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

Back to the top