From: Iouri L. <iou...@ya...> - 2004-07-13 05:18:47
|
Yummy! Looks like it's time to beat the dust from my 'XSLT Cookbook' by Sal Mangano. Sure, Chapter 10 - 'Code Generation'. Thanks for the tip Alex6. Iouri --- "Guevara, Alexei" <Ale...@uh...> wrote: > Hi, > > other choice might be using xslt to generate the > source java files from an > xml file. The structure of the java files for new > messages is very simple. > > Alex6 > -----Original Message----- > From: Iouri Leonov [mailto:il...@mo...] > Sent: July 12, 2004 2:18 PM > To: hl7...@li... > Subject: [HAPI-devel] How to use XML-binding to > generate library classes for > hapi parser? > > Good day developers. > > Recently I've started playing with hapi framework. I > have a question > relating to configuration of messages. > > Let' say we have a very common scenario - a user > wants his custom segment > ZUSER with some custom datatype MY_DT. I see the > only way to do it - make > new Java files. I have to create a new ZUSER.java in > segment package and a > new MY_DT.java in datatype package. Then I have to > go to message package and > change message ADT_x.java file in order to make it > work with these new > segment and datatype. Job that definitely requires > skills of a Java > programmer. > > My question relates to ways of descriptive > programming. Is there a way in > the current hapi implementations to describe the > content of my new segment > and datatype not in .java file but rather in some > XML file or in w3 XML > Schema file then run that xml instance through a > binding parser which will > generate classes ZUSER.class and MY_DT.class which > can be used directly by > Pipe parser? Something in line with JAXB - XML > binding. If there is a way, > then how to do it, if there's none - any idea how to > make it happen? > > Cheers, > > Iouri Leonov > XML Developer > > > > ------------------------------------------------------- > This SF.Net email sponsored by Black Hat Briefings & > Training. > Attend Black Hat Briefings & Training, Las Vegas > July 24-29 - > digital self defense, top technical experts, no > vendor pitches, > unmatched networking opportunities. Visit > www.blackhat.com > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > > --- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system > (http://www.grisoft.com). > Version: 6.0.712 / Virus Database: 468 - Release > Date: 27/06/2004 > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system > (http://www.grisoft.com). > Version: 6.0.712 / Virus Database: 468 - Release > Date: 27/06/2004 > > > > This e-mail may contain confidential and/or > privileged information > for the sole use of the intended recipient. Any > review or distribution > by anyone other than the person for whom it was > originally intended is > strictly > prohibited. If you have received this e-mail in > error, please contact the > sender and > delete all copies. Opinions, conclusions or other > information contained in > this e-mail may not be that of the organization. > > > > ------------------------------------------------------- > This SF.Net email sponsored by Black Hat Briefings & > Training. > Attend Black Hat Briefings & Training, Las Vegas > July 24-29 - > digital self defense, top technical experts, no > vendor pitches, > unmatched networking opportunities. Visit > www.blackhat.com > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail |