Hi,

is there a way that I could intercept Collection enumeration and provide a
run time wrapping for the objects in the collection?

For example the binding has to marshal collection of object "A". class "A"
has a lot of getMethods that are parameter driven - like bit mask
interpretation. Is it possible during enumeration to create a run time
wrapping with obj "B", and use "B" to reference the data from object "A" and
then in the binding schema use the "B" get-methods?

If possible how would you do that?

Here is the code:

class A
{
    int m_flags;
    int contains(int flag)
    {....
    }
}
class B
{
    A m_a;
    B(A a){m_a = a;}
    int isSeen   (){return m_a.contains(SEEN);}
    int isCleaned(){return m_a.contains(CLEANED);}
}

Thanks,
Chav Ivanov



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
jibx-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to