Sorry for not replying earlier, but you can always write your own
FieldHandler. Whether this is a sufficient solution for your problem,
maybe somebody else with more experience in this area can answer.

Regards
Werner

Samavedam, Sairam wrote:
> Ignoring the reflection problem aside, is there any solution to
> marshalling a flat object into an array-list?
> 
>  
> 
> */public class Flat{/*
> 
> */private string a;/*
> 
> */private boolean b;/*
> 
> */            /*
> 
> */            //getters and setters/*
> 
> */}/*
> 
> */ /*
> 
> */<flat>/*
> 
> */            <attribute>valA</attribute>/*
> 
> */            <attribute>valB</attribute>/*
> 
> */</flat>/*
> 
>  
> 
> Thanks,
> 
> Sairam.
> 
>  
> 
> ------------------------------------------------------------------------
> 
> *From:* Samavedam, Sairam
> *Sent:* Wednesday, January 03, 2007 4:24 PM
> *To:* '[email protected]'
> *Subject:* tricky marshalling problem
> 
>  
> 
> Hi folks. Here is my java file and the required marshalled xml output.
> 
>  
> 
> */public class Flat{/*
> 
> */private string a;/*
> 
> */private boolean b;/*
> 
> */            /*
> 
> */            //getters and setters/*
> 
> */}/*
> 
> */ /*
> 
> */<flat>/*
> 
> */            <attribute type=”string”>valA</attribute>/*
> 
> */            <attribute type=”boolean”>valB</attribute>/*
> 
> */</flat>/*
> 
> */ /*
> 
> The way I am doing it now is to convert Flat object into an arraylist of
> “Attribute” objects using reflections API. (Attribute object has type
> and value). Then I am marshalling it.
> 
>  
> 
> Is there any easier way to do this?
> 
>  
> 
> Thanks,
> 
> Sairam.
> 
>  
> 


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to