Hi,
I need something thread safe so even a Vector or something from
java.util.concurrent would be more useful.
Thanks
Wolfgang Laun-2 wrote:
>
> This depends on PlatformType - is it an xs:simpleType?
>
> What would you like to have instead of ArrayList, and why?
>
> -W
>
>
> On Wed, Sep 30, 2009 at 6:28 PM, rubinod <webaccounts_at_rubino.co.uk> wrote:
>
>>
>> Hi,
>>
>> Say I have the following:
>>
>> <xs:element name="Platforms">
>> <xs:complexType>
>> <xs:sequence>
>> <xs:element name="platform" minOccurs="0"
>> maxOccurs="unbounded"
>> type="c:PlatformType"/>
>> </xs:sequence>
>> </xs:complexType>
>> </xs:element>
>>
>> when I run the schema through JAXB to generate the class files I get:
>>
>> @XmlRootElement(name = "Platforms")
>> public class Platforms
>> implements Serializable
>> {
>>
>> @XmlElement(name = "platform")
>> protected List<Platform> platforms;
>>
>> public List<Platform> getPlatforms() {
>> if (platforms == null) {
>> platforms = new ArrayList<Platform>();
>> }
>> return this.platforms;
>> }
>>
>> }
>>
>> I would like to be able to override the default List implementation as I
>> dont want an ArrayList- is this possible?
>>
>> Thanks
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Overiding-default-JAXB-mappings-tp25684570p25684570.html
>> Sent from the java.net - jaxb users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
>> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>>
>>
>
>
--
View this message in context: http://www.nabble.com/Overiding-default-JAXB-mappings-tp25684570p25706852.html
Sent from the java.net - jaxb users mailing list archive at Nabble.com.