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 final ModuleRegistry
Resolver4.moduleRegistry
protected final ModuleRegistry
Userdoc.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 and failure messages are always generated):
.Modifier and TypeMethodDescriptionstatic String
Tasks.ddf2doc3
(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, int tracelevel, ModuleRegistry moduleReg, String modulename, String language, boolean isStatic, String outputname, String gencomment, @Opt NamespaceName2String ext_stylesheetParams, @Opt 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 definition to a dtd file.static void
Tasks.ddf2xslt
(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, int verbosity, ModuleRegistry moduleReg, @Opt Iterable<String> additionalSources, 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, @Opt Iterable<String> additionalSources, 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 for all error messages.Text2Udom.fromMemString
(String locationText, MemString<String> text, ModuleRegistry moduleRegistry) Parse the contents of the given MemString object, which includes a text type declaration header.Text2Udom.fromMemString
(String locationText, MemString<String> text, ModuleRegistry moduleRegistry, @Opt XRegExp toplevelXRegExp, Text2Udom.modes mode) Parse the contents of the given MemString object, containing just the text body.static Transformation
Tasks.getTransformation
(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, int tracelevel, Trace xsltTrace, ModuleRegistry moduleRegistry, Text2Udom.ErrorStrategy errorStrategy, ResolvedModule mod, String key, ResultContext resultContext, String topElementName, TransformationCache transformationsCache, Transformation.Modifiers txsl_modifiers, FunctionLibrary<?> functionLibrary, LocationMap<XMLDocumentIdentifier, XMLDocumentIdentifier> stringpos2filepos, boolean writeIntermediateXsltCodeToFile, @Opt String dateNow, @Opt String fileBasis, int lineWidth) Service point: Deliver the xslt Transformation object for given source and target formats.protected void
Text2Udom.loadMetaModule
(ModuleRegistry moduleRegistry) Load the general d2d meta module und find the required definitions.protected boolean
TextFileHeader.parse
(MemScanner<String> 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) Only Constructor.FirstCalculator
(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, @Opt ModuleRegistry modreg) EvidentResolver4
(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msgoutput, ModuleRegistry moduleRegistry, Module rootModule, int verbosity) Central service providing method.protected
Userdoc
(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, int debuglevel, File generatedDir, int lineWidth, ModuleRegistry moduleRegistry, String languagecode, String generationString, NamespaceName2String stylesheetParams) Only constructorUserdocInstantiated
(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, int debuglevel, File generatedDir, int lineWidth, ModuleRegistry moduleRegistry, ResolvedModule mod, String targetcode, String generationString, NamespaceName2String stylesheetParams) Only constructorUserdocUninstantiated
(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, int debuglevel, File generatedDir, int lineWidth, ModuleRegistry moduleRegistry, Module mod, String targetcode, String generationString, NamespaceName2String stylesheetParams) Only constructor(package private)
XsltInstance
(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, int tracelevel, ModuleRegistry moduleRegistry, @Opt XRegExp toplevelXRegExp) -
Uses of ModuleRegistry in eu.bandm.tools.d2d2.demo
-
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.