wood burning stoves 2.0*
The moose likes XML and Related Technologies and the fly likes Pre initializing a collection for automated JAXB generations. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Pre initializing a collection for automated JAXB generations." Watch "Pre initializing a collection for automated JAXB generations." New topic
Author

Pre initializing a collection for automated JAXB generations.

nithin chinni
Ranch Hand

Joined: Dec 02, 2010
Posts: 41
Hi, I am using JAXB for generating objects form XSD's. The way jaxb objects are generating right now is,



But I want something like this


Is there a way in the jaxb bindings to specify that I want a pre initialization for jaxb elements.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Pre initializing a collection for automated JAXB generations.
 
Similar Threads
@WebService method returning a custom class containing a HashMap / JAX-WS
effect of private static final objects in java?
Mocking
generics code mixed with legacy collection
Difference between instace initializers and the member initializers