Just use a mapping file, and don't specify the "y" field.

http://castor.exolab.org/xml-mapping.html

--Keith

> [EMAIL PROTECTED] wrote:
> 
> Hi,
> 
> Can the Castor marsheling use a filter mechanism to produce XML output
> for few methods on the java beans and ignore the remaining methods ?
> 
> Example :
> 
> public class  A{
> 
>    public int getX(){return 0];
>    public int getY(){return 1];
> 
> }
> 
> When I use the above java bean object to the castor Marshaller, I want
> to get only getX method output in the XML. I want the Marshaller to
> ignore the getY method and do not produce anything for getY.
> 
> Thanks in advance,
> Kalu
> 
>  Confidentiality Notice
> 
>  The information contained in this electronic message and any attachments to this 
> message are intended
>  for the exclusive use of the addressee(s) and may contain confidential or 
> privileged information. If
>  you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
> PROTECTED] immediately
>  and destroy all copies of this message and any attachments.

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to