Fuse 6 is no longer supported
As of February 2025, Red Hat Fuse 6 is no longer supported. If you are using Fuse 6, please upgrade to Red Hat build of Apache Camel.Este conteúdo não está disponível no idioma selecionado.
55.2. Javadoc Options
Overview Copiar o linkLink copiado para a área de transferência!
Copiar o linkLink copiado para a área de transferência!
If the metadata for your Java API is provided by Javadoc, it is generally sufficient to specify the
fromJavadoc element with no options. But in cases where you do not want to include the entire Java API in your API mapping, you can filter the Javadoc metadata to customize the content. In other words, because the API component Maven plug-in generates the API mapping by iterating over the Javadoc metadata, it is possible to customize the scope of the generated API mapping by filtering out unwanted parts of the Javadoc metadata.
Syntax Copiar o linkLink copiado para a área de transferência!
Copiar o linkLink copiado para a área de transferência!
The
fromJavadoc element can be configured with optional child elements, as follows:
Scope Copiar o linkLink copiado para a área de transferência!
Copiar o linkLink copiado para a área de transferência!
As shown in the following extract, the
fromJavadoc element can optionally appear as a child of the apis element and/or as a child of api elements:
You can define the
fromJavadoc element at the following scopes:
- As a child of an
apielement—thefromJavadocoptions apply only to the API class specified by theapielement. - As a child of the
apiselement—thefromJavadocoptions apply to all API classes by default, but can be overridden at theapilevel.
Options Copiar o linkLink copiado para a área de transferência!
Copiar o linkLink copiado para a área de transferência!
The following options can be defined as child elements of
fromJavadoc:
excludePackages- Specifies a regular expression (
java.util.regexsyntax) for excluding Java packages from the API mapping model. All package names that match the regular expression are excluded; and all classes derived from the excluded classes are also ignored. Default value isjavax?\.lang.*. excludeClasses- Specifies a regular expression (
java.util.regexsyntax) for excluding API base classes from the API mapping. All class names that match the regular expression are excluded; and all classes derived from the excluded classes are also ignored. excludeMethods- Specifies a regular expression (
java.util.regexsyntax) for excluding methods from the API mapping model. includeMethods- Specifies a regular expression (
java.util.regexsyntax) for including methods from the API mapping model. includeStaticMethods- If
true, static methods will also be included in the API mapping model. Default isfalse.