{"id":1472,"date":"2014-03-13T21:58:38","date_gmt":"2014-03-14T02:58:38","guid":{"rendered":"http:\/\/unitstep.net\/?p=1472"},"modified":"2014-03-21T21:07:31","modified_gmt":"2014-03-22T02:07:31","slug":"softlayer-data-type-java-class-generator","status":"publish","type":"post","link":"https:\/\/unitstep.net\/blog\/2014\/03\/13\/softlayer-data-type-java-class-generator\/","title":{"rendered":"SoftLayer data type Java class generator"},"content":{"rendered":"

The SoftLayer REST API<\/a> doesn’t seem to have an XSD, so you can’t use xjc<\/code><\/a> to generate classes. That’s a shame for a strongly-typed language, since you’d now have to manually create classes based on their Data Type Reference<\/a>.<\/p>\n

I didn’t like that and decided to code up a Java class generator<\/a> (it’s written in Python) based on the Data Type Reference. You can use it to generate a Java class based on the SoftLayer Data Type you pass in. Enjoy!<\/p>","protected":false},"excerpt":{"rendered":"

The SoftLayer REST API doesn’t seem to have an XSD, so you can’t use xjc to generate classes. That’s a shame for a strongly-typed language, since you’d now have to manually create classes based on their Data Type Reference. I didn’t like that and decided to code up a Java class generator (it’s written in […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[197,137,403],"tags":[],"_links":{"self":[{"href":"https:\/\/unitstep.net\/wp-json\/wp\/v2\/posts\/1472"}],"collection":[{"href":"https:\/\/unitstep.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unitstep.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unitstep.net\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unitstep.net\/wp-json\/wp\/v2\/comments?post=1472"}],"version-history":[{"count":4,"href":"https:\/\/unitstep.net\/wp-json\/wp\/v2\/posts\/1472\/revisions"}],"predecessor-version":[{"id":1495,"href":"https:\/\/unitstep.net\/wp-json\/wp\/v2\/posts\/1472\/revisions\/1495"}],"wp:attachment":[{"href":"https:\/\/unitstep.net\/wp-json\/wp\/v2\/media?parent=1472"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unitstep.net\/wp-json\/wp\/v2\/categories?post=1472"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unitstep.net\/wp-json\/wp\/v2\/tags?post=1472"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}