Parser

Parser

new Parser()

Source:
parser class implementation.

Methods

extractValue(table, field, rootObject) → {T}

Source:
extract value of a table ,filed from the row data from DB.
Parameters:
Name Type Description
table String Table name.
field String Filed name.
rootObject Object
Returns:
An array or String,Number,Boolean or date or Object
Type
T

loadConditions(rules, filter) → {Object}

Source:
Parameters:
Name Type Description
rules json
filter function
Returns:
Type
Object

loadConditionsImplement(devicesRule, filter, loadDateTime) → {Object}

Source:
Parameters:
Name Type Description
devicesRule json
filter function
loadDateTime boolean
Returns:
Type
Object

loadPreProcessVerbs(rules, filter)

Source:
Parameters:
Name Type Description
rules String
filter function

rawContentParser(rawContent) → {*}

Source:
Parameters:
Name Type Description
rawContent json
Returns:
Type
*

rawTargetParser(rawTarget) → {Object}

Source:
Parameters:
Name Type Description
rawTarget json
Returns:
Type
Object