aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes JAXB relation to Eclipse? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "JAXB relation to Eclipse?" Watch "JAXB relation to Eclipse?" New topic
Author

JAXB relation to Eclipse?

Juan Rolando Prieur-Reza
Ranch Hand

Joined: Jun 20, 2003
Posts: 236
Thanks for the link to Chapter 2, which I've only skimmed so far.
The impressive mingling of XML + UML giving java leads me to wonder if there is any relationship between Eclipse fundamentals and the JAXB (Java Architecture for XML Binding) ?
I find the JAXB to be very promising as well: JAXB's concept seems very clear; I can easily see myself using it or maintaining software I seem to always inherit :roll: . For example, I would be likely to want to generate java to represent entity-like constructs by first defining them as XML and then automatically generating the java code. I can see it. But right at this moment, I am having a hard time seeing the "XML + UML => java" of Eclipse working for me; it seems like a heep 'o tumble weed.
No conclusions yet. Would someone care to enlighten me?


Juan Rolando Prieur-Reza, M.S., LSSBB, SCEA, SCBCD, SCWCD, SCJP/1.6, IBM OOAD, SCSA
Ed Merks
Author
Greenhorn

Joined: Sep 08, 2003
Posts: 8
Originally posted by john prieur:
Thanks for the link to Chapter 2, which I've only skimmed so far.
The impressive mingling of XML + UML giving java leads me to wonder if there is any relationship between Eclipse fundamentals and the JAXB (Java Architecture for XML Binding) ?
I find the JAXB to be very promising as well: JAXB's concept seems very clear; I can easily see myself using it or maintaining software I seem to always inherit :roll: . For example, I would be likely to want to generate java to represent entity-like constructs by first defining them as XML and then automatically generating the java code. I can see it. But right at this moment, I am having a hard time seeing the "XML + UML => java" of Eclipse working for me; it seems like a heep 'o tumble weed.
No conclusions yet. Would someone care to enlighten me?

John, I was a member of the JAXB 1.0 expert group and am currently a member of the JAXB 2.0 expert group, which has just started meeting. The goals for JAXB are quite different from those for EMF. They are trying to define a mapping of XML Schema onto Java whereas we are trying to define a mapping of XML Schema onto Ecore, which already has a well defined mapping onto Java. Their goal is to provide a clean Java API for manipulating XML whereas we are trying to provide a unifying metamodel for manipulating any data, XML or otherwise; we both aim to be able to serialize data as XML. Different strategies and goals often lead to different results, as is the case here. We will try to keep in line with JAXB but some divergence is to be expected.
Note that the 2.0 stream of EMF and XSD, which we expect to make public very soon, will include simplified and significantly more powerful XML Schema to Ecore mapping. Things like wildcards and mixed content will be support. In fact, we'll be able to read arbitrary XML, with or without an XML Schema, as an EObject graph. We look forward to getting feedback on this latest design when we make it available.


Author of <a href="http://www.amazon.com/exec/obidos/ASIN/0131425420/qid%3D1064320896/sr%3D11-1/ref%3Dsr%5F11%5F1/102-6891814-9849714" target="_blank" rel="nofollow">Eclipse Modeling Framework</a>
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

Has JAXB reached a stable version?
[ September 24, 2003: Message edited by: Pradeep Bhat ]

Groovy
Ed Merks
Author
Greenhorn

Joined: Sep 08, 2003
Posts: 8
Pradeep, version 1.0 is finalized but version 2.0 opens it back up again. Issues such as aligning with JAX-RPC, and providing more complex XML Schema coverage, may result in "breaking" changes.
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

Can you tell me what JAXB has got to do with Eclipse. Sorry I am not able to understand from the previous posts here.
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Originally posted by Pradeep Bhat:
Can you tell me what JAXB has got to do with Eclipse. Sorry I am not able to understand from the previous posts here.

Nothing, from what I understand...


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Frank Budinsky
Author
Greenhorn

Joined: Sep 08, 2003
Posts: 28
JAXB defines a mapping from XML Schema to Java. Since EMF allows you to define a model in XML Schema and then generate Java for it, it overlaps with what JAXB is doing. As Ed mentioned in his previous post, he is participating in the JAXB expert group to try to keep EMF in sync with JAXB as much as possible, even though EMF larger vision than just XML to Java mapping.


Lead author of <a href="http://www.amazon.com/exec/obidos/ASIN/0131425420/qid%3D1064321221/sr%3D11-1/ref%3Dsr%5F11%5F1/102-1364017-8080960" target="_blank" rel="nofollow">Eclipse Modeling Framework</a>.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JAXB relation to Eclipse?