Reputation: 6263
i am working with Jaxb. and i would like to generate javaDoc files from these classes, is it the same way as i would do it to a regular java files?
Upvotes: 2
Views: 4028
Reputation: 1102
A more direct approach (from the JAXB tutorial) which addresses the concerns above: http://jaxb.java.net/tutorial/section_5_4-Adding-Documentation.html#Adding%20Documentation
Upvotes: 2
Reputation: 1102
You can use the xs:annotation
with xs:documentation
and jaxb picks them up and makes them javadoc on the class.
Notes:
<xs:complexType name="TypeThatBecomesJavaClass">
<xs:annotation>
<xs:documentation>
This becomes javadoc for TypeThatBecomesJavaClass</xs:documentation>
</xs:annotation>
... etc ...
Upvotes: 2
Reputation: 597274
Assuming you have generated .java
files from .xsd
- yes, they are regular classes which you can modify, comment and document.
Upvotes: 0