implement Comparable
"Reese, Nathan" <[email protected]> Tue, 2 Jul 2013 15:44:50 +0000
| Newsgroups | gmane.text.xml.xmlbeans.user |
|---|---|
| Message-ID | <E9EDCCBE0A538A4B8D29C84CB8E7F593AB46AB@CHUNEX01.integrity-apps.com> |
--_000_E9EDCCBE0A538A4B8D29C84CB8E7F593AB46ABCHUNEX01integrity_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Is there a way to generate classes from an XSD that contain an implementati=
on of the Comparable interface?
I would like to sort List<MyType> but need MyType to implement the Comparab=
le interface. The problem is that MyType is auto-generated by XmlBeans.
Thanks,
Nathan
--_000_E9EDCCBE0A538A4B8D29C84CB8E7F593AB46ABCHUNEX01integrity_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<html dir=3D"ltr">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<style id=3D"owaParaStyle" type=3D"text/css">P {margin-top:0;margin-bottom:=
0;}</style>
</head>
<body ocsi=3D"0" fpstyle=3D"1">
<div style=3D"direction: ltr;font-family: Tahoma;color: #000000;font-size: =
10pt;">Is there a way to generate classes from an XSD that contain an imple=
mentation of the Comparable interface?<br>
<br>
I would like to sort List<MyType> but need MyType to implement the Co=
mparable interface. The problem is that MyType is auto-generated by XmlBean=
s.<br>
<br>
Thanks,<br>
<br>
Nathan<br>
</div>
</body>
</html>
--_000_E9EDCCBE0A538A4B8D29C84CB8E7F593AB46ABCHUNEX01integrity_--