Interface Configuration
- All Known Implementing Classes:
DocletConfig
public interface Configuration
Configuration that influences how UML should be rendered.
- Author:
- Sjoerd Talsma
-
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()logger()Custom logger implementation that only supports fixed messages.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.
-
Method Details
-
delegateDocletName
- Returns:
- The name of the doclet to delegate main documentation to
or
Optional.empty()if no delegation is wanted.
-
logger
Logger logger()Custom logger implementation that only supports fixed messages.This allows us to write unit tests that verify resource bundle availability of all loggable text.
- Returns:
- The logger for this application
-
indentation
Indentation indentation()- Returns:
- The configured indentation within the generated UML files.
-
destinationDirectory
String destinationDirectory()- Returns:
- The destination directory for the UML diagrams, or the empty string
""for the current directory.
-
renderPumlFile
boolean renderPumlFile()- Returns:
- Whether or not to render PlantUML
.pumlfiles.
-
images
ImageConfig images()- Returns:
- The configuration for the images that are generated.
-
fields
FieldConfig fields()- Returns:
- The part of the configuration that determines how fields are rendered.
-
methods
MethodConfig methods()- Returns:
- The part of the configuration that determines how methods are rendered.
-
excludedTypeReferences
- Returns:
- The types (classes, interfaces) that are excluded as references.
-
excludedPackageDependencies
- Returns:
- The packages (including subpackages) excluded from the package dependencies.
-
failOnCyclicPackageDependencies
boolean failOnCyclicPackageDependencies()- Returns:
- Whether or not to fail when cyclic package dependencies are detected.
-
resolveExternalLinkToType
Resolves an external link to the specified type.- Parameters:
packageName- The package of the type.type- The type name within the package.- Returns:
- The external link, if resolved
-
customPlantumlDirectives
Custom 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.- Returns:
- Any custom PlantUML directives.
-
umlCharset
Charset umlCharset()The UML character set can be explicitly configured with the"-umlEncoding"option.If this is not explicitly set, the htmlCharset() will also be used for the
PlantUMLsource files.- Returns:
- The charset to use for PlantUML files
-
htmlCharset
Charset htmlCharset()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,
the
default platform encodingis used as implicit fallback
- Returns:
- The charset used for Javadoc HTML files
- use the
-