richard_barnett_at_mlc.com.au wrote:
>
>
>The JAXB 2.0 JSR <http://jcp.org/en/jsr/detail?id=222> says:
>
>
Richard,
Thanks for your inquiry. I will address it below.
>"Portable mechanisms to traverse a graph of JavaBean objects will be
>addressed in JAXB 2.0."
>
To provide context for everyone else, here is the next sentence from the
JSR.
"Portable mechanisms include but are not limited to the the use of XPath
expressions."
Another mechanism that I remember being considered was the visitor pattern.
>Does this mean that a JAXB object will expose an iterator over its child
>(or descendant) JAXB objects?
>
>If so, will it be possible to iterate over attributes?
>
Using XPath extraction, you could get this infoset view of the data w/o
requiring
XML InfoSet specific methods(getAttributes() or getChildren()) being
generated in every JAXB interface.
>
>Will this introduce child->parent links?
>
DOM already provides this relationship. JAXB 1.0 databinding desired to
avoid
requiring the storage/processing overhead and implementation
complexities caused by maintaining child->parent links in its Java
representation of XML content for ALL JAXB implementations.
I hope this additional info helps.
-Joe Fialli, Sun Microsystems
>
>Thanks
>
>-- Richard
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
>For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net