Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » how to control marshaller conditionally?
how to control marshaller conditionally? [message #1106868] Wed, 11 September 2013 12:52
jason zhang is currently offline jason zhang
Messages: 25
Registered: July 2009
Junior Member
I am facing this situation. I have a regular object graph. When one of object is requested, the related object is shown as xml element. However, related object could have other relateds recursively. To avoid showing too much information or generating big document, I want to only show related objects in first two levels.

I am thinking to add a Marshal Listener to detect the level. But I have no way to tell marshaller to skip the current element.

Any suggestion?
Previous Topic:Name collision when using super-type in moxy oxm.xml
Next Topic:Dynamic Moxy can not work together with JPA Lazy Loading
Goto Forum:
  


Current Time: Thu Jul 24 13:44:17 EDT 2014

Powered by FUDForum. Page generated in 0.06707 seconds