Javadoc Link Macro

Links API documentation pages for Java elements.

Categories
Tags
Extension
Since
1.0

Renders a link to a Java element in a Javadoc API.

The macros purpose is to specify the reference to the system serving the Javadoc API for the project at one place (as a Confluence shortcut or space property) and reuse this URL throughout the usage of this macro. The body of the macro contains a reference to the Java element to point to.

Macro Editor

Macro Editor
Macro Editor

This macro does not import Javadoc HTML pages into Confluence to make them searchable. It is used to create a link to an element of the API in a Confluence page. The base URL to the API home is defined by a space property and the relative URL is generated by the information passed to the macro (e.g. the name of the class).

Properties

System Identifier

Identifies the connection information via Confluence shortcuts or space properties.

Defaults to javadoc.

The system identifier is checked at three locations

The search for the system connection information is conducted as follows. Use the URI discovered first to connect to the server.

  1. Check for a space property url-${system-id}
  2. Check for a space property ${system-id}
    Only available with projectdoc Toolbox version 1.11 and up!
  3. Check for a space property shortcut-id-${system-id}.
    Lookup the connection information from the shortcut links with the value retrieved from the space property.
  4. Check the shortcut links for a value ${system-id}.
  5. Check application navigator for a value ${system-id}.

If no value is specified at any of the locations above, the macro renders an error message like this:

In this example for a system macro the referenced, but undefined system, is called test-repo.

Render Fully Qualified

If checked the element is rendered fully qualified. Otherwise only the element is rendered.

Render Type

If checked the type is rendered. Otherwise only the name of the method is rendered.

Use this if you want to put emphasis on the method.

Render Parameters

If checked the method parameters are rendered. Otherwise only the name of the method is rendered.

Label

The label for the link.

Defaults to the element name specified in the body of this macro.

Details

Autoconvert

To create the macro authors may simply paste the URI to the Java element to the editor. All is needed is a configuration of the Javadoc base URI. For more information on this topic, please refer to Autoconvert Information System URIs.

Related macros

The following macros help with referencing resources on other information servers:

Enterprise Architect Image Link Macro
Renders an image generated from an Enterprise Architect diagram, transcluded from a server.
HTML Snippet Macro
Transclude HTML content from a remote server.
Nexus Link Macro
Renders a link to an artifact stored on a Nexus server.
System Image Link Macro
Renders an image transcluded from a remote server.
System Link Macro
Links to a resource on a server.
System Transclusion Macro
Transclude content from a resource from a remote system.
Text Snippet Macro
Transclude text content from a remote server.