users@jaxb.java.net

code generated from a list of 'token' type

From: jonathan gold <dev_at_samizdatdigital.org>
Date: Thu, 06 Oct 2005 10:44:19 -0700

i've noticed that if i have

     <sequence>
         <element name="foo" type="string" maxOccurs="unbounded"/>
     </sequence>

i get a corresponding accessor to a List< String >, but if the type is
'token', then i get an accessor to a List< JAXBElement< String > >. i
presume this is because token is more sophisticated than 'string' and
can't be directly passed through to the xml (it has to be trimmed first,
cleaned up, etc).

not a big deal, but wanted to see if i'm overlooking some easy way to
marshal/unmarshal tokens but allow java users to get/set Strings. i
could always use a custom DatatypeConverter and force xjc to bind the
'foo' element to String, right?


jon