No, it's not possible to use an abstract mapping when you want to insert
elements into the middle of the structure defined by the abstract
mapping. In the case where your structure is just a sequence of elements
it would be possible to use two abstract mappings - one for the
structure preceding where you want to do the addition, once for the
structure following that point - but that's going to be more trouble
than it's worth unless you're going to be doing a number of variations
of additions into this structure.
- Dennis
Vairoj A. wrote:
Hi,
I would like to use abstract mapping to map the inheritance structure
of the following classes:
class Vehicle {
private String name;
private double fuelLoad;
}
class AirVehicle extends Vehicle {
}
class TrackVehicle extends Vehicle {
private int turnRadius;
}
When using abstract mapping, <structure map-as> expected all mapping
in the same sequence as the abstract class.
So it would map to the following XML:
<airvehicle>
<name>A-1</name>
<fuelload>100</fuelload>
</airvehicle>
<trackvehicle>
<name>T-1</name>
<fuelload>200</fuelload>
<turnradius>20</turnradius>
</trackvehicle>
However, what if I want track vehicle structure to be like this:
<trackvehicle>
<name>T-1</name>
<turnradius>20</turnradius>
<fuelload>200</fuelload>
</trackvehicle>
Is it possible to use abstract mapping for this scenario?
Regards,
Vairoj
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the live
webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users