We have a 'legacy' application which we are modeling in Rose 2001A. Most of
the objects in the model need to be able to send and receive their state in
XML (XML marshallaing).  We have chosen a simple standard convention for
how the classes in the model should be able to render themselves in XML
fragments, as well as how each class should set its attributes based on
content of an XML fragment.  In general the approach is the same idea used
in the proposed Java JAXB spec, just simpler.  We'd like to know if there's
a way to write a language add-in (or rose script, or whatever) that gets
invoked by OnGenerateCode so that when we ask Rose to generate the java
code, as well as generating our Rose attributes and methods in java like
normal, it could generate additional Java XML code in a couple of
additional standard methods (like 'public String toXML()' and 'public void
fromXML(Element)' ) by iterating through the attributes in the class and
generating simple code fragments for each attribute.  The goal would be to
save our programmers from having to code up tedious XML marshalling code
for each object modeled.

We have Rose Professional, and have ordered a Rose Enterprise edition as
well, but have just used Rose for modeling and have never tried any sort of
Rose scripting or other non-standard add-in development.   Is there already
some sort of XML marshalling feature in Enterprise?  If not, has anyone
already taken this sort of JAXB-like approach with some sort of Rose
add-in?  JAXB seems a little too early in its life for us to rely upon, but
the idea behind it of being able to generate XML marshalling code given a
DTD (or a UML spec) is attractive to us for a variety of reasons.  We are
going to try using Rose enterprise to generate DTDs from our model and feed
those to JAXB just to see if what it does would be useful.  But I'd still
like to explore other alternatives to the same problem, especially if the
alternative can directly leverage our Rose model.

If anyone has experience with JAXB against Rose-modeled objects I'd be very
interested in hearing about that as well.

Thanks in advance for any info...

************************************************************************
* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Admin.Subscription Requests: [EMAIL PROTECTED]
* Archive of messages: http://www.rational.com/support/usergroups/rose/rose_forum.jsp
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*
* To: [EMAIL PROTECTED]
* Subject:<BLANK>
* Body: unsubscribe rose_forum
*
*************************************************************************

Reply via email to