tag:blogger.com,1999:blog-1710464868724994296.post8219692625332767709..comments2023-06-29T09:48:09.653-04:00Comments on Java XML and JSON Binding: JAXB and EnumsBlaise Doughanhttp://www.blogger.com/profile/02016807982653343777noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-1710464868724994296.post-72697917702388321462013-09-04T14:08:55.308-04:002013-09-04T14:08:55.308-04:00Your XML schema didn't survive the comment sec...Your XML schema didn't survive the comment section, but the same bindings file approach will work for use case. Is this your Stack Overflow question:<br />- <a href="http://stackoverflow.com/questions/18617825/converting-xsd-enum-to-java-class-in-eclipse" rel="nofollow">http://stackoverflow.com/questions/18617825/converting-xsd-enum-to-java-class-in-eclipse</a>Blaise Doughanhttps://www.blogger.com/profile/02016807982653343777noreply@blogger.comtag:blogger.com,1999:blog-1710464868724994296.post-65100699913165303202013-09-04T11:11:37.057-04:002013-09-04T11:11:37.057-04:00Hi Blaise,
I have a problem with Eclipse and conv...Hi Blaise,<br /><br />I have a problem with Eclipse and conversion from xsd schema to java class.<br />I've used your example below:<br /><br /><br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /><br />The problem is, if I have only number in value, for example:<br /> <br />The Enum class is not being generated. If I delete rows:<br /> <br /> <br /> <br />than everything generates OK. Do you have any suggestion?<br /><br />Thank you in advance,<br />TomyAnonymoushttps://www.blogger.com/profile/04667302941105559268noreply@blogger.comtag:blogger.com,1999:blog-1710464868724994296.post-25277304029893021392012-05-09T23:53:09.671-04:002012-05-09T23:53:09.671-04:00This comment has been removed by a blog administrator.mikej1688@gmail.comnoreply@blogger.comtag:blogger.com,1999:blog-1710464868724994296.post-25396503862909920242011-12-20T19:16:58.671-05:002011-12-20T19:16:58.671-05:00To solve the numeric enumeration values (eg: 1001,...To solve the numeric enumeration values (eg: 1001, 1002 etc) used in the XSD, I used <br /><globalBindings typesafeEnumMemberName="generateName" /><br />In my bindings file (.xjb) and the generated enum constants came out VALUE_1001 , VALUE_1002, etcNeil Cliftonhttps://www.blogger.com/profile/14787268252103363404noreply@blogger.com