users@jaxb.java.net

enhancing object model?

From: Frank Langelage <frank_at_lafr.de>
Date: Fri, 14 Jul 2006 00:08:55 +0200

We generate classes from an thirdparty schema to read B2B XMLs.

An element of complex type Feature has an element of the complex type
Option inside, maxoccurs unbounded.
So the Feature class has "List<Option> option".

Is it possible to get additionally an property of type option into the
class feature, ideally filled with the first element of the list:
class Feature {
    List<Option> option;
    Option firstOption;
    ...
}.