Nanook

Nanook

  • Docs
  • API
  • GitHub

›File Processor

Logger

  • Logger Interface
  • Logger Memory

Model

  • Table Interface
  • Testcase Definition Interface
  • Todo Meta
  • Todo Static
  • Todo Generator
  • Todo Reference

Model Decision

  • Base Section Definition
  • Base Single Row Section Definition
  • Execute Section Definition
  • Never Execute Section Definition
  • Multiplicity Section Definition
  • Summary Section Definition
  • Field Section Definition
  • Field Sub Section Definition
  • Multi Row Section Definition
  • Tag Section Definition
  • Filter Section Definition
  • Generator Switch Section Definition
  • Testcase Definition Decision
  • Table Decision
  • Section Types
  • Validate Double
  • Validate Helper
  • Validate Missing

Model Matrix

  • Testcase Definition Matrix
  • Table Matrix

Importer xlsx

  • Importer xlsx

File Processor

  • Importer Interface
  • Parser Interface
  • Interface Filter
  • Simple Array Filter
  • Simple Array Ignore Filter
  • Parser Constants
  • Parser Decision Constants
  • Parser Decision
  • Parser Matrix Constants
  • Parser Matrix
  • Parser Specification Constants
  • Parser Specification
  • Parser Specification Converter

Data Generator

  • Data Generator Interface
  • Data Generator Base
  • Service Registry
  • Generator Faker

Processor

  • Interface Processor
  • Interface Writer
  • Node
  • Reference
  • Testcase Data
  • Processor
  • writeMetaData
  • writeStaticData
  • utilCartesian

Parser Matrix

ParserMatrix ⇐ ParserBase

The parser for the matrix tables.

Kind: global class
Extends: ParserBase

  • ParserMatrix ⇐ ParserBase
    • .fieldNameSequence
    • .parse(sheetName, importer) ⇒ object
    • .getFieldName() ⇒ string
    • ._parseMetaDataColumn(table, sheetName, importer, sheetEndColumn, sheetEndRow)
    • ._checkForEmptyColumn(sheetName, importer, column, sheetEndRow)
    • ._parseMetaDataRow(table, sheetName, importer, sheetEndColumn, sheetEndRow)
    • ._checkForEmptyRow(sheetName, importer, row, sheetEndColumn)
    • ._parseFieldData(table, sheetName, importer, sheetEndColumn, sheetEndRow)

parserMatrix.fieldNameSequence

This sequence is used to give each field a unique name.

Kind: instance property of ParserMatrix

parserMatrix.parse(sheetName, importer) ⇒ object

Parses the sheet with the given name und uses the given importer to access the data.

Kind: instance method of ParserMatrix
Returns: object - tableModel The created tablemodel

ParamTypeDescription
sheetNamestringThe name of the sheet
importerobjectThe importer

parserMatrix.getFieldName() ⇒ string

Creates a unique field name.

Kind: instance method of ParserMatrix
Returns: string - fieldName New generated fieldName

parserMatrix._parseMetaDataColumn(table, sheetName, importer, sheetEndColumn, sheetEndRow)

Reads the meta data information of each column and stores it in the table object

Kind: instance method of ParserMatrix

ParamTypeDescription
tableobjectThe table to store the current sheet data
sheetNamestringThe name of the sheet
importerobjectThe importer
sheetEndColumnnumberThe last column of the sheed (Exclusive)
sheetEndRownumberThe last row of the sheet (Exclusive)

parserMatrix._checkForEmptyColumn(sheetName, importer, column, sheetEndRow)

Checks that the complete row is empty. If the column has no name, then the complete row must be null

Kind: instance method of ParserMatrix

ParamTypeDescription
sheetNamestringThe name of the sheet
importerobjectThe importer
columnnumberThe current column
sheetEndRownumberThe last row of the sheet (Exclusive)

parserMatrix._parseMetaDataRow(table, sheetName, importer, sheetEndColumn, sheetEndRow)

Reads the meta data information of each row and stores it in the table object

Kind: instance method of ParserMatrix

ParamTypeDescription
tableobjectThe table to store the current sheet data
sheetNamestringThe name of the sheet
importerobjectThe importer
sheetEndColumnnumberThe last column of the sheed (Exclusive)
sheetEndRownumberThe last row of the sheet (Exclusive)

parserMatrix._checkForEmptyRow(sheetName, importer, row, sheetEndColumn)

Checks that the complete row is empty. If the column has no name, then the complete row must be null

Kind: instance method of ParserMatrix

ParamTypeDescription
sheetNamestringThe name of the sheet
importerobjectThe importer
rownumberThe current row
sheetEndColumnnumberThe last column of the sheet (Exclusive)

parserMatrix._parseFieldData(table, sheetName, importer, sheetEndColumn, sheetEndRow)

Reads the data section of the matrix table

Kind: instance method of ParserMatrix

ParamTypeDescription
tableobjectThe table to store the current sheet data
sheetNamestringThe name of the sheet
importerobjectThe importer
sheetEndColumnnumberThe last column of the sheed (Exclusive)
sheetEndRownumberThe last row of the sheet (Exclusive)
← Parser Matrix ConstantsParser Specification Constants →
  • ParserMatrix ⇐ ParserBase
    • parserMatrix.fieldNameSequence
    • parserMatrix.parse(sheetName, importer) ⇒ object
    • parserMatrix.getFieldName() ⇒ string
    • parserMatrix._parseMetaDataColumn(table, sheetName, importer, sheetEndColumn, sheetEndRow)
    • parserMatrix._checkForEmptyColumn(sheetName, importer, column, sheetEndRow)
    • parserMatrix._parseMetaDataRow(table, sheetName, importer, sheetEndColumn, sheetEndRow)
    • parserMatrix._checkForEmptyRow(sheetName, importer, row, sheetEndColumn)
    • parserMatrix._parseFieldData(table, sheetName, importer, sheetEndColumn, sheetEndRow)
Nanook
Docs
TutorialsGuide
More
ImprintPrivacy PolicyGitHubStar
Copyright © 2022 Nanook.io