Hello,
I have a question. I have a class Point3D whose definition is seen
below:
public class Point3D{
public double x;
public double y;
public double z;
}
And MonitorPoint class which has instance variable having type Point3D:
public class MonitorPoint{
private Point3D position;
public Point3D getPosition(){
return position;
}
public void setPosition(Point3D pos){
position = pos;
}
}
The XML representation for MonitorPoint should look like:
<MonitorPoint x="1.0" y="2.0" z="3.0"/>
Can I have such an XML representation without writing field handlers for
x,y and z as seen?
<class name="MonitorPoint">
<field name="x" type="XField" handler="XFieldHandler">
<bind-xml name="x" node="attribute"/>
</field>
<!-- for y and z similarly-->
</class>
What I really dont want is writing field handlers for x,y,z just because
I want them to be attributes for <MonitorPoint> instead of <Position>.
Thanks in advance
Sunay
This e-mail contains confidential information for the exclusive attention of the
intended addressee. Any access of third parties to this e-mail is unauthorised. Any
use of this e-mail by unintended recipients such as copying, distribution, disclosure
etc. is prohibited and may be unlawful. When addressed to our clients the content of
this e-mail is subject to the General Terms and Conditions of GL's Group of Companies
applicable at the date of this e-mail.
GL's Group of Companies does not warrant and/or guarantee that this message at the
moment of receipt is authentic, correct and its communication free of errors,
interruption etc.
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev