FeaturesPluginsDocs & SupportCommunityPartners
schema2beans

schema2beans is software that takes descriptions of XML files (DTDs or XML Schemas) and generates java beans to automatically deal with the XML for you.

The roots of this module go back to Forte For Java's dd2beans module.  Interesting features include events, ability to merge 2 graphs, be able to veto changes, & find.

This software is similar to JAXB in that Java class bindings are automatically generated, but it has several interesting additional features (and has a license that works well with NetBeans).  Interesting features include, but are not limited to:
  • property change events
  • veto changes
  • XPath find
  • able to generate beans that need no runtime
  • able to generate minimal Java Beans (just getters and setters) for those times when you need to minimize the size of the class files
  • Support for J2ME idiosyncrasies
  • able to statically combine multiple separately generated bean graphs (very useful if a schema has a subtree that is the same as another schema and you want to be able to share objects between the two generated graphs)
  • java bean validation
  • able to generate a common interface across all beans and to be able to navigate them as a graph at runtime
  • able to keep element positions from the source XML graph
  • able to work with the comments in the XML

See here for the documentation.


Companion
Projects:
MySQL Database Server   Open JDK: an Open SourceJDK   GlassFish Community: an Open Source Application Server    Mobile & Embedded Community    Open Solaris   java.net - The Source for Java Technology Collaboration   Open ESB - The Open Enterprise Service Bus Powered by