ObjectWeb Consortium
Search ObjectWeb Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | enhydra List | Febuary 2004 Index

<--  Date Index  --> <--  Thread Index  -->

GUI for Zeus


Hi,

 

First of all I have to say, that I like your Project - the XML-Java-Generator - a lot. We use it in our hospital to generate the necessary classes from DTDs for some of our interfaces to sub systems.

The only thing that made me a bit unhappy at the beginning, was the code generation (in Command-Line) and to get the generated classes going (in a Test-File)...

As this was a common "problem" for different users that worked with your framework, I started to develop a GUI for generating the Java classes and also build a sample TEST file to use them.

 

So, I send to you this GUI, which is now finished, in my opinion (maybe you detect a bug - then please inform me).

 

My program is built on the SWT-Technology from the Eclipse-Project and here is a short description how to work with it.

 

To install the GUI simply unzip all files included in xmlToJavaGUI.zip in one directory. Then edit the xmlToJavaGUI.cfg - File which holds two parameters that are necessary for the usage of the Zeus framework (see my current settings):

zeusLocation=C:/boehm/java/zeus_xml/build/bin

java1.4Location=C:/j2sdk1.4.2_02/bin

 

To explain: "zeusLocation" must be the exact place where the file zeus.bat lies and "java1.4Location" has to be, where the javac.exe file (for compiling) is located.

 

Then you can run the program by double-clicking the xmlToJavaGUI.bat file.

 

As the first step you have to choose the DTD to generate the Java files from:

As the heading says, the generated Java/Class-Files will be stored in subfolders of the current DTD location (according to java package structure defined later).

 

When the DTD is loaded you have the possibility to review and edit it. The class generation will always be based on the last saved version of the DTD!

 

To generate the class files you have to set the Zeus properties in the following screen.

As you can see, here you can also create a Test class - and therefore you have to define the parentObject of the DTD (which is usually the first ELEMENT in the DTD).

 

If you then select "GENERATE Java Classes" you can watch the program generating everything you wished...

 

Now the classes can be used, as normally - by the Zeus command line - generated! In the Test*.java file you can see that for testing purposes I read an XML-file, unmarshal it, print out the parentObject and the marshal the information again and print it as a new XML-String to the standard output. This should be enough for a user to know, how to work with it...

 

Maybe, you will give my program a try and test it for yourself, and if you find it useful you could post it on your homepage, so that everybody who is interested, can use and also change (improve) it.

As I am a great fan of open source projects, I attached my whole source code in xmlToJavaGUI.jar - free to change and use.

 

Hope that you like my little program...

 

Regards

Bernhard Böhm

Attachment: image002.jpg
Description: JPEG image

Attachment: image001.jpg
Description: JPEG image

Attachment: image002.jpg
Description: JPEG image

Attachment: image001.jpg
Description: JPEG image

Attachment: image003.jpg
Description: JPEG image

Attachment: image002.jpg
Description: JPEG image

Attachment: image001.jpg
Description: JPEG image

Attachment: image001.jpg
Description: JPEG image

Attachment: image002.jpg
Description: JPEG image

Attachment: image003.jpg
Description: JPEG image

Attachment: image003.jpg
Description: JPEG image

Attachment: image002.jpg
Description: JPEG image

Attachment: image001.jpg
Description: JPEG image

Attachment: image001.jpg
Description: JPEG image

Attachment: image002.jpg
Description: JPEG image

Attachment: image003.jpg
Description: JPEG image

Attachment: image004.jpg
Description: JPEG image

Attachment: xmlToJavaGUI.zip
Description: Binary data

Attachment: image004.jpg
Description: JPEG image

Attachment: image003.jpg
Description: JPEG image

Attachment: image002.jpg
Description: JPEG image

Attachment: image001.jpg
Description: JPEG image

Attachment: image004.jpg
Description: JPEG image

Attachment: image003.jpg
Description: JPEG image

Attachment: image002.jpg
Description: JPEG image

Attachment: image001.jpg
Description: JPEG image

Attachment: image001.jpg
Description: JPEG image

Attachment: image002.jpg
Description: JPEG image

Attachment: image003.jpg
Description: JPEG image

Attachment: image004.jpg
Description: JPEG image

Attachment: image004.jpg
Description: JPEG image

Attachment: image003.jpg
Description: JPEG image

Attachment: image002.jpg
Description: JPEG image

Attachment: image001.jpg
Description: JPEG image



<--  Date Index  --> <--  Thread Index  -->

Reply via email to:

Powered by MHonArc.

Copyright © 1999-2005, ObjectWeb Consortium | contact | webmaster.