Hi All ,
I have started using the Castor-XML recently. I have a requirement in which
I need to unmarshall an xml file into an class like this
class b{ private int i;
public void setI(int i){this.i=i;
}
public int getI(){return i;}
}
class a (
private b test;
private int aint;
public b getTest(){return test;
}
public void setTest(b test){ this.test=test;
}
public void setAint(int aint){this.aint=aint;}
public int getAint(){ return aint;}
}
I want to to unmarshal an xml file into class a and populate both aint and
b.i . How do I specify the setter and the getter methods in the xml file?
Any help will be appreciated...
Regards ,
Sayan
----------------------------------------------------------------------------------------------------------------------
Information transmitted by this E-MAIL is proprietary to Wipro and/or its Customers and
is intended for use only by the individual or entity to which it is
addressed, and may contain information that is privileged, confidential or
exempt from disclosure under applicable law. If you are not the intended
recipient or it appears that this mail has been forwarded to you without
proper authority, you are notified that any use or dissemination of this
information in any manner is strictly prohibited. In such cases, please
notify us immediately at mailto:[EMAIL PROTECTED] and delete this mail
from your records.
----------------------------------------------------------------------------------------------------------------------