-
Notifications
You must be signed in to change notification settings - Fork 101
More Schema Annotations/Documentation to Javadoc #172
Comments
Reported by vorburger |
Issue-Links: |
Was assigned to snajper |
kohsuke said: |
File: test.xsd |
vorburger said: |
kohsuke said: |
kohsuke said:
|
kohsuke said: |
olo said: |
dkulp said: |
skells said: Theer are some problems with it mostly related to the API the generate the I can share the code if anyone is interested in taking it forward |
dkulp said: Just log a JIRA at: |
dkulp said: In CXF, we've recently setup a subproject to house additional XJC plugins |
kpsdevi said:
<jaxb:globalBindings typesafeEnumMemberName="generateName"> Then I was able to generate classes as given below with prefix "VALUE_" in the name, which was confusing as my enum values start with 0. public enum XYZCodeSimpleType { /**
/**
/**
<jaxb:bindings node="//xsd:simpleType[@name='XYZSimpleType']"> With this external binding I was able to generate classes with names as given below but I lost the documentation which is there in the schema. Because of that I need to duplicate documentation as well in jaxb bindings which I don't want to. public enum XYZCodeSimpleType { @XmlEnumValue("0")
if( mem!=null ) { name = mem.name; mdoc = mem.javadoc; } So the above code should be modified as given below if( mem!=null ) { { //Fix mdoc = mem.javadoc; } } I request you to fix this issue and release the update of JAXB2.2.3 as soon as possible. |
snajper said: |
os111 said: As I understood it the original intent was to include documentations from the XSD in the Javadoc of autogenerated code. For example the following from schema snippet This attribute can be either 1, 2, or 3.Generates the following javadoc: /** The javadoc should also include the schema's documentation. |
vorburger said: |
snajper said: |
marcelstoer said: |
kwakeroni said: |
duncant said: |
This issue was imported from java.net JIRA JAXB-172 |
As discussed on the "Schema Annotations/Documentation to Javadoc" thread on
users@jaxb.dev.java.net (see
https://jaxb.dev.java.net/servlets/ReadMsg?list=users&msgNo=5469) :
Please let me know if you need more details, schemas or code - hoping above is
clear.
When you do commit code for this, I'd would be happy to try a nightly build and
provide feedback; please add a comment to this Bugzilla and we'll give the next
build a shot. Thanks!
Environment
Operating System: All
Platform: All
URL: https://jaxb.dev.java.net/servlets/ReadMsg?list=users&msgNo=5469
Affected Versions
[2.0 FCS]
The text was updated successfully, but these errors were encountered: