Table of Contents

Module: TabDelim-to-GennyLDD .\TabDelim-to-GennyLDD.py
Imported modules   
import ASV
import genny_util
import mismoextensions
import string
import sys
import time
Functions   
log_LDD_rows
parse_LDD_file
parse_childlist
xml_body
xml_containers
xml_header
xml_write_container_attr
  log_LDD_rows 
log_LDD_rows ( LDD_rows,  logfh )

Writes the retrieved input rows to be converted to a log file

  parse_LDD_file 
parse_LDD_file ( filename,  logfh )

Parse the Input LDD as a tab delimited file.

The root container must be the first line after the column headers of the input file. Everything prior the the line with the Root container is skipped.

  parse_childlist 
parse_childlist ( logfh,  inputstring )

Parse the list of child container/min/max occurs into discrete components

  xml_body 
xml_body (
        logfh,
        xmlfh,
        LDD_rows,
        )

Write the xml that is the LDD to the output file

  xml_containers 
xml_containers (
        logfh,
        xmlfh,
        LDD_rows,
        )

# ************************************************************ # write the xml for each container that is found to the output # file # # ************************************************************ # column map # 0 Container Name # 1 Container Description # 2 data item name (LDD name) # 3 Data Item Definition # 4 Common Valid Values # 5 Common Valid Values Definition # 6 Datatype # 7 IDREF container reference/Fixed/Default Value # # 8 container sequence # 9 parent containers (or Root) # 10 child containers (with min/maxOccurs for each) # 11 container default minOccurs # 12 container default maxOccurs # 13 container primary key item value # 14 container implementation note # 15 container example # 16 container used by process # 17 container doc graphic filename

# 18 data item sequence # 19 data item minOccurs # 20 data item maxOccurs # 21 data item implementation note # 22 data item example # 23 data item used by process # 24 data item mapping note # 25 data item source document # 26 data item min length # 27 data item max length # 28 data item regex pattern # 29 data item retain whitespace indicator # 30 data item numeric precision # 31 data item numeric scale # 32 data item min value inclusive # 33 data item max value inclusive # # 34 "EOL" - strictly a placeholder so excel with save the columns correctly # # **************************************************************

  xml_header 
xml_header ( logfh,  xmlfh )

Start to build the LDD xml file, and include the boilerplate header text

  xml_write_container_attr 
xml_write_container_attr (
        logfh,
        xmlfh,
        container_rows,
        data_item_cnt,
        data_item_enum_cnt,
        data_item_enum_string_cnt,
        )

Output the xml for a specific container


Table of Contents

This document was automatically generated on Thu Feb 06 22:28:50 2003 by HappyDoc version 2.1