Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Use moxy to handle 3rd party interfaces(MOXY)
Use moxy to handle 3rd party interfaces [message #1766919] Wed, 28 June 2017 17:51
Hector Fontanez is currently offline Hector FontanezFriend
Messages: 1
Registered: June 2017
Junior Member
I am trying to figure out a way to Marshal a 3rd party object into XML using moxy.

At a high level, what I am trying to do is to save off the internal properties of a chart object (axis information, chart color, title value, etc), by simply passing a non-annotated object to the JAXB marshaler.. like this:
JAXBContext context = JAXBContext.newInstance(ThirdPartyChartClass.class);
JAXBElement<ThirdPartyChartClass> je2 = new JAXBElement<ThirdPartyChartClass>(new QName(thirdPartyChartObject.getUniqueId()), ThirdPartyChartClass.class, thirdPartyChartObject);
Marshaller m = context.createMarshaller();
m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);
m.marshal(je2, System.out);

The problem that I am running into is that the 3rd party object have interfaces in it. Without obtaining the 3rd party source and map these internal members manually (which can be a HUGE undertaking) I do not know how to resolve this issue.
Previous Topic:HistoryPolicy: Remove fields from history table
Next Topic:Configuring Single Table Multitenancy for stored tenant ID using Spring
Goto Forum:
  


Current Time: Sun Dec 17 11:59:15 GMT 2017

Powered by FUDForum. Page generated in 0.01953 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software