From: Iouri L. <il...@mo...> - 2004-07-12 18:17:44
|
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 |