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.