That is where things get interesting, isn't it? In Java, there is a Class class that can be used to create objects of a class that might not be known at compile time (useful, for example, when loading plugins, JDDBC drivers, etc.) but that's the extent of it. The class needs to be statically defined somewhere. It would be nice, for example, to be able to take an XML schema, parse it and create a new class at runtime so that documents adhering to that schema can be treated as objects of the given class. In creating my HL7 message builder, I had to store message bindings as XML documents that would either be parsed at runtime (the part I did implement) or used to generate MUMPS code (the part I have not, yet at least, implemented). Now, if we could generate new "DDs" (as opposed to just storing something like a DD in an ordinary file), then support for new HL7 messages could be added much more easily without havbing to create new files. In fact, in my firs "cut" at creating an HL7 query tool, I actually did create two files to support different HL7 queries. the message structure was the same in each cse, but the association between HL7 field and database fields was not. The idea of having a separate file for every mapping you might want to support was, well, ludicrous. That's why I rewrote the tools using XML templates and re- implemented my existing queries using a generic tool (even if it did require parsing the XML template at runtime, which is a pain in the neck.)

===
Gregory Woodhouse
[EMAIL PROTECTED]

"The most profound technologies are those that disappear."
--Mark Weiser



On Jul 11, 2005, at 3:32 PM, [EMAIL PROTECTED] wrote:

Perhaps if we had an API call, we would be able
to over-ride it and make dynamic fields etc....





-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Hardhats-members mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hardhats-members

Reply via email to