XML.com: XML From the Inside Out
oreilly.comSafari Bookshelf.Conferences.

advertisement
 Resource Guide -> XML Serialization, Schema, Java Beans, Java Applications, IBM -> XML BeanMaker

XML BeanMaker

Date: Nov. 13, 1998
Link: http://www.alphaWorks.ibm.com/formula/xmlbeanmaker
Source Author or Organization: IBM (alphaWorks)

Excerpted from web site: "The BeanMaker takes an arbitrary schema (DTD) for an XML instance and automatically generates Java bean classes for this code."

"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."