The Java documentation support in Document! X allows you to create documentation for your Java source code projects.
A full documentation set is generated including pages for each class, interface, enumeration, constructor, method and field you choose to include. Inheritance hierarchies, cross topic links, Object Model diagrams, Syntax sections are all automatically generated and combined with content from Javadoc source comments and any additional content you choose to author in a Document! X Content File.
The Document! X Java Documentation support fully leverages Javadoc source comments, adding features and functionality to what is possible with the Standard Javadoc generator.
Create a new Java Reference Documentation Project
The new empty documentation project will be created and opened for edit. You can now add the Java Projects that you wish to document:
The selected Java Project will be added to the Project Explorer under the Java Projects node. You can expand down through each project node to tick / untick individual packages or types in order to include / exclude them from the generated output; by default private and protected types are excluded (unticked).
You can add as many additional Java Projects as you wish by repeating the procedure above.
A Content File will be created and added to the project under the Content Files node for each Java Project you add to the project. You can use this Content File to author additional content in the pages that Document! X will automatically generate.
Author content in Javadoc comments
You can use standard Javadoc source comments in your Java source code and Document! X will use them by default in the generated output.
/** * <p>Returns an Image object that can then be painted on the screen. * The url argument must specify an absolute {@link URL}. The name * argument is a specifier that is relative to the url argument.</p> * <p>This method always returns immediately, whether or not the * image exists. When this applet attempts to draw the image on * the screen, the data will be loaded. The graphics primitives * that draw the image will incrementally paint on the screen.</p> * * @param url an absolute URL giving the base location of the image * @param name the location of the image, relative to the url argument * @return the image at the specified URL * @see Image */ public Image getImage(URL url, String name) { try { return getImage(new URL(url, name)); } catch (MalformedURLException e) { return null; } }
Author content outside of the source code
If you would like to supplement the content of the pages automatically generated by Document! X outside of the source code, you can do so using the Document! X Content File Editor.
The Content File Editor allows you to review and author content for any item for which a reference documentation page is generated.
To open the Content File Editor:
Add Conceptual Topics
Conceptual information is a key part of reference documentation, providing a high level introduction, tutorials or other conceptual information. You can easily create conceptual topics in Document! X.
You can find more information on Topic Editing in the Topic Editor topic.
Change Java documentation settings
The settings that govern Java documentation generation are defined in the Build Profile editor. In a new project there is a single Build Profile but you can define many build profiles if you want to create multiple outputs with different settings.
To edit Java documentation settings:
In the Build Profile editor, you can find the Java Settings pages under the Reference Documentation section.
You can change the Template used for Java documentation (which defines the look and feel of generated pages) on the Templates page.
Identify undocumented items
An essential part of delivering a complete documentation set is ensuring that all the items have been documented. Document! X includes the Undocumented Items tool to quickly and easily identify undocumented items.
To identify undocumented items:
See the Undocumented Items topic for more information.
Build and deploy Java Reference Documentation
Click the Build Ribbon button on the Project ribbon tab to build your Java Reference Documentation.
Java documentation generated by Document! X can be published and associated with your Java Projects in Java Development tools in order to drive both tooltip and Shift+F1 help functionality, thereby providing developments who use your Java Projects with instant access to the documentation.
Refer to the Deploying Java Documentation topic for more information on publishing your Java documentation.