Class DocletConfig
java.lang.Object
nl.talsmasoftware.umldoclet.javadoc.DocletConfig
- All Implemented Interfaces:
Configuration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCustom directives to include in rendered PlantUML diagram sources.booleanfields()TheHTMLcharacter set is determined the same way theStandarddoclet uses, as we delegate the initial rendering to it: use the"-docencoding"if set, otherwise the source encoding ("-encoding") finally, if no encodings are specified at all, thedefault platform encodingis used as implicit fallbackimages()voidlogger()Custom logger implementation that only supports fixed messages.mergeOptionsWith(Set<? extends Doclet.Option> standardOptions) methods()booleanresolveExternalLinkToType(String packageName, String type) Resolves an external link to the specified type.The UML character set can be explicitly configured with the"-umlEncoding"option.
-
Constructor Details
-
DocletConfig
public DocletConfig()
-
-
Method Details
-
init
-
mergeOptionsWith
-
delegateDocletName
- Specified by:
delegateDocletNamein interfaceConfiguration- Returns:
- The name of the doclet to delegate main documentation to
or
Optional.empty()if no delegation is wanted.
-
logger
Description copied from interface:ConfigurationCustom logger implementation that only supports fixed messages.This allows us to write unit tests that verify resource bundle availability of all loggable text.
- Specified by:
loggerin interfaceConfiguration- Returns:
- The logger for this application
-
indentation
- Specified by:
indentationin interfaceConfiguration- Returns:
- The configured indentation within the generated UML files.
-
destinationDirectory
- Specified by:
destinationDirectoryin interfaceConfiguration- Returns:
- The destination directory for the UML diagrams, or the empty string
""for the current directory.
-
renderPumlFile
public boolean renderPumlFile()- Specified by:
renderPumlFilein interfaceConfiguration- Returns:
- Whether or not to render PlantUML
.pumlfiles.
-
images
- Specified by:
imagesin interfaceConfiguration- Returns:
- The configuration for the images that are generated.
-
fields
- Specified by:
fieldsin interfaceConfiguration- Returns:
- The part of the configuration that determines how fields are rendered.
-
methods
- Specified by:
methodsin interfaceConfiguration- Returns:
- The part of the configuration that determines how methods are rendered.
-
excludedTypeReferences
- Specified by:
excludedTypeReferencesin interfaceConfiguration- Returns:
- The types (classes, interfaces) that are excluded as references.
-
excludedPackageDependencies
- Specified by:
excludedPackageDependenciesin interfaceConfiguration- Returns:
- The packages (including subpackages) excluded from the package dependencies.
-
failOnCyclicPackageDependencies
public boolean failOnCyclicPackageDependencies()- Specified by:
failOnCyclicPackageDependenciesin interfaceConfiguration- Returns:
- Whether or not to fail when cyclic package dependencies are detected.
-
resolveExternalLinkToType
Description copied from interface:ConfigurationResolves an external link to the specified type.- Specified by:
resolveExternalLinkToTypein interfaceConfiguration- Parameters:
packageName- The package of the type.type- The type name within the package.- Returns:
- The external link, if resolved
-
customPlantumlDirectives
Description copied from interface:ConfigurationCustom directives to include in rendered PlantUML diagram sources.Custom directives are rendered as-is at the top of each PlantUML diagram. For example, to use jdot for rendering, use the
"!pragma graphviz_dot jdot"custom directive.- Specified by:
customPlantumlDirectivesin interfaceConfiguration- Returns:
- Any custom PlantUML directives.
-
umlCharset
Description copied from interface:ConfigurationThe UML character set can be explicitly configured with the"-umlEncoding"option.If this is not explicitly set, the Configuration.htmlCharset() will also be used for the
PlantUMLsource files.- Specified by:
umlCharsetin interfaceConfiguration- Returns:
- The charset to use for PlantUML files
-
htmlCharset
Description copied from interface:ConfigurationTheHTMLcharacter set is determined the same way theStandarddoclet uses, as we delegate the initial rendering to it:- use the
"-docencoding"if set, - otherwise the source encoding (
"-encoding") - finally, if no encodings are specified at all,
the
default platform encodingis used as implicit fallback
- Specified by:
htmlCharsetin interfaceConfiguration- Returns:
- The charset used for Javadoc HTML files
- use the
-