Hi there,
Is there any way to perform some filtering while
marshalling? Say I have a main object, instance of class A with a
collection of child objects, instances of B - out of all child objects I
would like to serialize only those that match a certain condition.
I know I could
-have B derive from a MyMarshallable class that exposes a property I can
set if I want the object to be serialized
-add a get-method in class A and verify the child property - if it
indicates serializing should not be performed for the child, return null
But it seems more convenient to me to implement certain
methods in the B class itself and also take advantage of a
IMarshallingContext argument that would allow me further access to
UserContext. That could even be accomplished with a Boolean 'pre-get'
method - if it returns false skip the marshalling.
Best Regards,
Bogdan
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users