Class UserdocUninstantiated
Module
.
Usage pattern:
(1) Create fresh instance
(2) call main entry method makeHtmlDoc()
(3) Then the directory (specified in (1)) will be filled with
main "index.html" and many "*.png", etc.
The generated xhtml has the following structure
-
Nested Class Summary
Nested classes/interfaces inherited from class eu.bandm.tools.d2d2.base.Userdoc
Userdoc.RefPainter_custom
-
Field Summary
Modifier and TypeFieldDescriptionprotected final PreimageMap<Definition,
String> Maps every found definition to its tag String.protected final PreimageMap<Definition,
String> Sum ofdefs2tag
over all modules.Maps import prefices to the definitions which make use of it.The jump for rendering a reference.Tooltip text, explains the "tag"-text as a reference to a definition.protected final Module
protected final String
Fields inherited from class eu.bandm.tools.d2d2.base.Userdoc
anchorname_listOfHomonyms, anchorname_toc, bigLogo, bodysubs, classname_alert, classname_contextpath_in_header, classname_creationcommand, classname_defcategory_in_header, classname_defname_in_header, classname_docuSurveyTable, classname_enum_intconst, classname_enumtable, classname_footertext, classname_import_recursive, classname_import_relevant, classname_import_repeat, classname_modulename_as_header_in_list, classname_modulename_in_header, classname_nestedModuleTable, classname_syntaxgraph_image, classname_text_generic, color_syntaxGraph_background_dynamic, color_syntaxGraph_background_static, docTexts, docTextXsltTransformation, docTextXsltTransformationLoaded, docu_errorstrategy, docu_prefix, el_img_pcdata, filename_contentGraph, filename_htmldoc, functionLibrary, generatedDir, generationString, hrefTooltipAlt, html_repr_empty, image_file_suffix, imageFormat, indicateGENERIC, item_in_line_separator, jumpToToc, languagecode, lineWidth, local_copy_css, local_copy_js, map_prefix, mapname_contentGraph, moduleRegistry, msg, msgMEMSTRING, prefix_anchor_definition, prefix_anchor_importitem, prefix_anchor_module, resource_position_ddfdoc_css, resource_position_ddfdoc_js, stylesheetParams, target_module_name, target_top_tag, targetcode, toctoclist, warnGeneric, xml_lineWidth
-
Constructor Summary
ConstructorDescriptionUserdocUninstantiated
(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, int debuglevel, File generatedDir, int lineWidth, ModuleRegistry moduleRegistry, Module mod, String targetcode, String generationString, NamespaceName2String stylesheetParams) Only constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected void
getHrefTooltipAlt
(Reference ref, String[] result) Callback method to deliver these three values for the graphic rendering of the given reference.void
Service Access Point callable by client.protected void
renderImportList
(Module module) protected void
renderOneDef
(Module module, String modulename, Definition def) Generate all text for one particular definition in the main text body.protected void
renderOneModule
(Module module) Analyze data and generate html output for one module.Methods inherited from class eu.bandm.tools.d2d2.base.Userdoc
addJumpToToc, anchor, anchor, anchor, anchor, copyResource, do_renderDocu, error, error, error, f_renderDocu, failure, getRenderedDocu, joinAllDocStrings, jump, jump, jump, jump, jumpName, loadDocTextXsltTransformation, make_h2_with_aname, make_li_text_localhref, makeDocuTable, makeEnumTable, makePngAndMap, makePngAndMap, mtext, mtext, packTd, packTd, renderDocu, showCategory_long, showCategory_short, splitWithAlerts, warning
-
Field Details
-
topModule
-
topModuleName
-
allModules
-
ref2jump
The jump for rendering a reference. The stored value is ==null iff not found. Must be global because it is read by theallback methodgetHrefTooltipAlt(eu.bandm.tools.d2d2.model.Reference, java.lang.String[])
. -
ref2longName
Tooltip text, explains the "tag"-text as a reference to a definition. Must be global because it is read by theallback methodgetHrefTooltipAlt(eu.bandm.tools.d2d2.model.Reference, java.lang.String[])
. -
importOccurence
Maps import prefices to the definitions which make use of it. -
defs2tag
Maps every found definition to its tag String. Used to detect homonyms. -
defs2tag_global
Sum ofdefs2tag
over all modules.
-
-
Constructor Details
-
UserdocUninstantiated
public UserdocUninstantiated(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, int debuglevel, File generatedDir, int lineWidth, ModuleRegistry moduleRegistry, Module mod, String targetcode, String generationString, NamespaceName2String stylesheetParams) Only constructor- Parameters:
msg
- MessageReceiverdebuglevel
- from 0 to 100, seeModuleRegistry.setTracelevel(int)
.generatedDir
- must exist as a directory, but should be empty.lineWidth
- for the printing of the re-constructed definition fragmentsgenerationString
- . Should contain the date of creation extractable byFormats.extractDate(String)
All HTML mark-up will be removed when the generation string is inserted in an XML comment.
-
-
Method Details
-
getHrefTooltipAlt
Callback method to deliver these three values for the graphic rendering of the given reference.- Specified by:
getHrefTooltipAlt
in classUserdoc
-
renderImportList
-
renderOneModule
Analyze data and generate html output for one module. Find for all reference texts the link target for syntax graph rendering. Detect "undef reference" errors, possible since this module is not instantiated. The sequence of html output is- Print a header,
- print the module-related docu text, iff present in the selected language,
- call
renderOneDef(Module,String,Definition)
for all definitions contained. - Print a table of all import items.
-
renderOneDef
Generate all text for one particular definition in the main text body. -
makeHtmlDoc
public void makeHtmlDoc()Description copied from class:Userdoc
Service Access Point callable by client.- Specified by:
makeHtmlDoc
in classUserdoc
-