Hi Ravi,

 

A few questions:

 

What do you want the representation of this iterator to look like?

Are you just marshalling, or do you want to unmarshal as well?

 

If you want to unmarshal, I think that may cause a few difficulties but
perhaps you could write an unmarshaller which builds a collection and
returns the iterator for that collection. Marshalling may also cause
difficulties because you would need to traverse the iterator to get the
values which will leave it pointing to the end of the collection. All in
all, if it is possible, it would be better if your attribute was the
actual collection instead of the iterator.

 

However, if you can't change this, your best bet is probably to define
custom serializer and deserializer methods as described here:
http://jibx.sourceforge.net/tutorial/binding-extend.html#serdeser

 

Regards,

 

Ian.

 

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of ravi
challapalli
Sent: 02 April 2008 13:32
To: jibx-users@lists.sourceforge.net
Subject: [jibx-users] Binging definition for a filed of type Iterator!

 

Hi,
I'm practicing on JiBX - a newbie.
I have an attribute of type java.util.Iterator as follows

Class XXX {

              java.util.Iterator<Identifier> identifierIterator;
}

Can any body help me in writing a binding definition for this.
Thanks i advance.



-- 
Cheers,
Challapalli


NHS Spine Project || Mastek Ltd || Mumbi || Desk. 4862 || Mobile.
9833113405 

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to