Uses of Class
eu.bandm.tools.d2d2.base.ModuleRegistry
Package
Description
D2d allows to write valid XML documents directly in the creative flow of authoring,
with minimum typographic noise.
Evaluation, statistics and renderings of bandm lab log format.
-
Uses of ModuleRegistry in eu.bandm.tools.d2d2.base
Modifier and TypeFieldDescription(package private) final ModuleRegistry
BatchProcessor.moduleRegistry
Used for loading all modules.protected ModuleRegistry
Def2Doc3.moduleRegistry
protected final ModuleRegistry
Resolver4.moduleRegistry
Modifier and TypeMethodDescriptionModuleRegistry.appendToSourceList
(String s) Appends a string which is the representation of a possible location of module sources to theend of the list of searched locations, as maintained by sourceHabitats
.ModuleRegistry.clearLocalModuleDefs()
Called when reusing this instance for several d2d text source files, each of which may be opened by a different "local module" definition.protected static ModuleRegistry
Batch.initModuleReg
(BatchOptions options, MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg) Construct a module registry according to the command line options.protected ModuleRegistry
Main.initModuleReg
(Options options) Construct a module registry according to the command line options.static ModuleRegistry
Main.initModuleReg
(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, int tracelevel, Stream<String> libpath) Construct a module registry according to the command line options.static ModuleRegistry
ModuleRegistry.makeInstance
(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msgr, int debug, String... searchpath) Factory method which constructs and initializes.ModuleRegistry.setMsgReceiver
(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg) EvidentModuleRegistry.setTracelevel
(int tracelevel) Sets the trace level and the amount of generated messages (error ans failure messages are always generated):
.Modifier and TypeMethodDescriptionstatic void
Tasks.ddf2doc3
(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, int tracelevel, ModuleRegistry moduleReg, String modulename, String language, String outputname, String gencomment, NamespaceName2String stylesheetParams, Iterable<String> additionalSources, int lineWidth) Service point: Generate the HTML documentation for a given module, ie.static void
Tasks.ddf2dtd
(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, ModuleRegistry moduleReg, String modulename, String docuLanguage, String fileOutputName, int lineWidth) Service point: Convert a d2d module definitoin to a dtd file.static void
Tasks.ddf2xslt
(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, int verbosity, ModuleRegistry moduleReg, String modulename, String targetModule, @Opt String targetTopTag, String outputname, Text2Udom.ErrorStrategy errorStrategy, String genString, int lineWidth) Service point: Extracts all xslt rules for the given module and target into a d2d definition and exports this to two xslt source files, in d2d and xml encoding.static void
Tasks.ddf2xslt
(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, int verbosity, ModuleRegistry moduleReg, String modulename, String targetModule, @Opt String targetTopTag, String outputname, Text2Udom.ErrorStrategy errorStrategy, String genString, int lineWidth, boolean writeAdditionallyToXmlFile) Service point: Extracts all xslt rules for the given module and target into a d2d definition and exports this to a d2d source file.void
DocOnly.distribute
(ModuleRegistry moduleReg, String key, boolean replace) Text2Udom.fromFile
(File f, ModuleRegistry moduleRegistry) Parse the contents of the given file.Text2Udom.fromFile
(String s, ModuleRegistry moduleRegistry) Parse the contents of the file found at the given location.Text2Udom.fromFile
(String locationText, File f, ModuleRegistry moduleRegistry) Parse the contents of the given file, using the given location text in error messages.Text2Udom.fromMemString
(String locationText, MemString text, ModuleRegistry moduleRegistry) Parse the contents of the given MemString object, using the given location text in error messages.protected void
Text2Udom.loadMetaModule
(ModuleRegistry moduleRegistry) Load the general d2d meta module und find the required definitions.void
Def2Doc3.makeHtmlDoc
(ModuleRegistry moduleRegistry, ResolvedModule mod, String targetcode, String generationString, NamespaceName2String stylesheetParams) Make xhtml-documentation of one top module and its childs or imports.protected boolean
TextFileHeader.parse
(MemScanner scanner, String toplevel_fileLocation, ModuleRegistry moduleRegistry) Parse the head of an input file.static <T extends TypedDocument,
D extends TypedDTD>
TTasks.string2tdom
(String sourcetext, ModuleRegistry modreg, Class<T> documentClass, D dtdInstance, MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msgr, Text2Udom.ErrorStrategy errorStrategy, int debug) Convert a d2d source text into a tdom model.static <T extends TypedDocument,
D extends TypedDTD>
TTasks.text2tdom
(@Opt File infile, ModuleRegistry modreg, Class<T> documentClass, D dtdInstance, MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msgr, Text2Udom.ErrorStrategy errorStrategy, int debug) Service point: Convert a d2d input file into a tdom model.static void
Tasks.text2xml
(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> e_msg, int debuglevel, ModuleRegistry e_moduleReg, Text2Udom.ErrorStrategy errorStrategy, File e_sourcefile, @Opt String generationComment, @Opt ContentHandler contentHandler, @Opt File xmlfile) Service point: Convert directly a d2d encoded input text file into xml, either to a file or to a programmed consumer or to both.ModifierConstructorDescriptionBatchProcessor
(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, ModuleRegistry modulereg, Text2Udom.ErrorStrategy errorStrategy, Transformation.Modifiers txsl_modifiers, Trace xsltTrace, int debuglevel, boolean writeIntermediateXsltCodeToFile, boolean partialDocs, @Opt SimpleFilePattern xmlOutputFilePattern, int lineWidth, BatchProcessor.Job... jobs) Resolver4
(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msgoutput, ModuleRegistry moduleRegistry, Module rootModule, int verbosity) (package private)
XsltInstance
(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, int tracelevel, ModuleRegistry moduleRegistry) -
Uses of ModuleRegistry in eu.bandm.tools.lablog.base
Modifier and TypeFieldDescriptionprotected ModuleRegistry
Main.modreg
Parametrization for the d2d parsing process: act robust, signal as many errors as possible, no console output, produce also incomplete output.