|
Thank you very much for your quick response. That's exactly what I need. Regards. Stephen Bash escribió: Juan- I believe the easiest way to do this is to pass ArrayList.class to the Unmarshaller constructor:Unmarshaller um = new Unmarshaller( ArrayList.class ); um.setMapping( mapping ); This process instructs the Unmarshaller to expect an ArrayList as the root element, and it will use the mapping file for classes contained inside the ArrayList. If this doesn't fit your needs, let us know and we can work on another solution. Stephen On 4/4/06, Juan Diego Moreira <[EMAIL PROTECTED]> wrote:Hello. I have created a class A which is mapped in order to marshall\unmarshall A objects using Castor. I would like to create an xml describing a list of A objects in order to unmarshall them inside a java.util.List wrapper (in fact an ArrayList wrapper). Is there any way to do this without declaring an extra object which have a List attribute holding the list of A objects? I just want to declare an xml file to unmarshall a List of A objects (I don't know if this is possible). Thanks in advance. ------------------------------------------------- If you wish to unsubscribe from this list, please send an empty message to the following address: [EMAIL PROTECTED] ------------------------------------------------- ------------------------------------------------- If you wish to unsubscribe from this list, please send an empty message to the following address: [EMAIL PROTECTED] ------------------------------------------------- |
- [castor-user] ArrayList wrapper around objects Juan Diego Moreira
- Re: [castor-user] ArrayList wrapper around objects Stephen Bash
- Re: [castor-user] ArrayList wrapper around obj... Juan Diego Moreira

