|
|
Resource Guide -> XML Serialization, Schema, Java Beans, Java Applications, IBM -> XML BeanMaker
XML BeanMaker
Date: Nov. 13, 1998 "The XML BeanMaker is a software tool written in Java to generate Java beans out of XML Schema files (DTD files) automatically. The goal of the BeanMaker is to alleviate the tedium of having to write get, set, and notification methods on Java classes corresponding to XML structures. It generates this code automatically." "The BeanMaker reads a DTD files and generates Java class interfaces corresponding to the elements and attributes in the DTD file. The root element of the DTD is converted to a bean class, and every element inside of it is converted into an inner bean class. A bean's (an element in the DTD) property is determined by the elements and attributes it contains, and the content model of the elements and attributes it contains. Events are generated when any of these properties change." "The BeanMaker produces a default Bean class that implements the Bean interface described above. This bean class provides mechanisms to set and get element and attribute values, notifying any listener when values are changed." "The BeanMaker also automatically generates javadoc on the bean class sources. Running the javadoc command on the sources will give browsable documentation." "The XML EditorMaker is an interesting complement for this.The EditorMaker automatically generates a visual editor for an XML document from the DTD files." |
|
|
|
|
|
|