INIT SERVICE

The INIT SERVICE of DATA FORMATS ANALYZER is implemented in the Dfa.py file as a Dfa module class.

Public Interface

class Dfa.InitService(verbosity='IWE', mode='X', filepath=None, version=None, refName=None, refVersion=None, rootElementName=None)

Provides methods to initialize other modules.

Parameters:

  • verbosity: The string specifying verbosity. Possible values are:
    • 'IWE' - Output INFO, WARNING and ERROR messages.
    • 'WE' - Output WARNING and ERROR messages.
    • 'E' - Output ERROR messages.
  • mode: The string specifying the mode of operation. Possible values are:
    • 'X' - Extract to XHTML and XML.
    • 'CD' - Convert DSV to XML.
    • 'CX' - Convert XML to DSV and TEX.
    • 'P' - Preview updated XML by updating XHTML and XML.
  • filepath: The string specifying the full path to the given XSD schema, which will be parsed.
  • version: The string specifying the output version.
  • refName: The string specifying the reference name.
  • refVersion: The string specifying the reference version.
  • rootElementName: The string specifying the root element name for which the tree structure should be generated.

Note that the parameters version, refName and refVersion are used for generating filenames to save or load various output files.

The values of following class variables can be adjusted in the source code to fit the needs of the specific analysis: dsvDelimiter, outputDocumentation, outputStandard, standardStringParts, surroundingChars and adjustableFilenames.

initJob()

Initializes and executes appropriate modules for a job specified by the mode.

Private Methods

InitService._executeConverter()

Initializes and executes Converter.

InitService._executeExtractor()

Initializes and executes Extractor.

InitService._executePreviewer()

Initializes and executes Previewer.

InitService._setCurrentExtension()

Sets the current extension.

Table Of Contents

Previous topic

BASIC USAGE

Next topic

CONVERT SERVICE