File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes how to extend/inherit object factory in jaxb Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "how to extend/inherit object factory in jaxb " Watch "how to extend/inherit object factory in jaxb " New topic
Author

how to extend/inherit object factory in jaxb

santos kumar
Greenhorn

Joined: Jan 11, 2012
Posts: 2


I would like to how to extend/inherit Objectfactory.The scenario is very simple.

suppose i have xsd_A which defines a complextype "address".There is another xsd b which imports xsd_a and references address or it create element of type address.i have few requirements

1) i would like the objectfactory of xsd_b to extend xsd_a and avoid redefining createAddress().how is it possible.i would like not to have Address.java in package xsd_b.i would like all classes in xsd_b to reference Address.java generated by xsd_a.


like
import xsd_a;
class something
{
public xsd_a.Address homeAddress;
}
Note the class refers the address generted by xsd_a.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to extend/inherit object factory in jaxb
 
Similar Threads
Usefulness of Abstract Classes?
Populate multiple pojo's.
Interview Question - FYI
Java & Multiple Inheritance
How to pass Java Objects into Stored Procedure in DB2