|Some questions about JAXB bindings. [message #1807307]
||Mon, 27 May 2019 23:12
| Robert Nicholson
Registered: May 2019
Up until now my experience with eclipse link has been statically mapping bean properties to XPath and the occasional JavaXMLTypeAdapter in order to control the format of a properties value.|
Now I've been given the task to map a DOM that was explicitly constructed procedurally and so it's not a 1:1 mapping but more conditions involved.
I have to construct XML that looks like this.
when I have
Q1. how can I avoid declaring the full path for each of my bean elements? Since they all will appear under D or lower.
Q2. I have to do conditional logic based on a beans properties
so depending on securityType attribute I have to emit
when securityType is set to OPT
when securityType is set to FUT
Q3. Another conditional scenario I have is
based on the value of orderType I have to do emit
when orderType = 1
when orderType = 2
when orderType = 3
when orderType = 4
Powered by FUDForum
. Page generated in 0.01248 seconds