- stream
- constructor
- addChecks
- _transform
- getCheckInfo
- createChecks
- createSplitterForField
- createChecks
- createChecks
- createChecks
- getProperty
- getSeverity
- getFieldType
- createChecks
- content
- createChecks
- createDateChecks
- errorInfo
- push
- push
- push
- push
- push
- push
- push
- push
- push
- createChecks
- parseNumberString
- createChecks
- createCheckEmail
- createCheckDefaultValue
- createChecksString
- RowProcessorInterceptor
This module will turn an array of tokens into an object.
optsvalidate
Add checks to the array of checks to be executed
checks
Reads the stream data and split it into lines.
dataenccb
Extracts the type value and the severity of a given check name from the checkProperty
checkPropertyThe checkProperty as defined in the schemafieldNameThe name of the field in the checkProperty
Returns any infoObject An object containing the boolean value and the severity
Creates the field splitter for a field, if this field is a multi field
fieldDefinitionThe field_definition schemafieldNameThe name of the current field
Create the field spliter for a given field definition The field must be a multiField.
multiFieldDefinitionPartThe multiField part of aa field definition for one field.fieldNameThe name of the current multiField
Creates the checks for checking boolean values
fieldDefinitionThe field_definition for this field.fieldNameThe name of the current field
Create a function which checks that the value in a field is a valid boolean value. If the value is boolean value, the boolean equivalent will be stored in the content hash. Otherwise, the default value for this field will be stored in the content hash instead.
fieldDefinitionThe field_definition for this field.fieldNameThe name of the current field
Checks a given string value. Checks the length and if it matches a given regular expression
fieldDefinitionThe field_definition for this field.fieldNameThe name of the current fieldnumberTypeThe type of the field (number, integer, float)
Returns any checks A list of checks to be perfomred
Some of the values may be directly the value or could be an object with different addidtional properties. So to get the expected value it must be checked if the property is an object or not. If it is an object the real value is stored in the object under the property 'val'. See the json fieldDefinition.
fieldDefinitionThe field_definitionfieldTypePropertyNameThe name of the property. This property is under the fieldTypepropertyNameThe name of the property. This property is a sibling of fieldTypeOnly one of the property names should be given
Returns the severity for a check property. The severity may be defined globaly for the complete field, but also may be defined on a per check basis
fieldDefinitionThe field_definitionfieldTypePropertyNameThe name of the property. This property is under the fieldTypepropertyNameThe name of the property. This property is a sibling of fieldTypeOnly one of the property names should be given
Returns the severity for a check property. The severity may be defined globaly for the complete field, but also may be defined on a per check basis
fieldDefinitionThe field_definition
Creates the checks which are common to each file type
fieldDefinitionThe field_definition for this field.fieldNameThe name of the current field
Just check if for mandatory fields the value is given
contentthe content hash to be validated.
Creates the date checks for a date field
fieldDefinitionThe field_definition schemafieldNameThe name of the current field
Create a function which checks that the value in a field is a valid boolean value. If the value is boolean value, the boolean equivalent will be stored in the content hash. Otherwise, the default value for this field will be stored in the content hash instead.
fieldDefinitionfieldNamemetaThe meta data hashcheckPropertyThe properties defines which checks to be created. See the schema for more infofieldnameThe name of the field which needs to be checked
Returns any function A function which will check a given content hash.
Checks that the given value is a valid date
contentthe content hash to be validated.
Returns any error an error object if the given value is not a valid date***
Checks that the given value is not before the given min date
contentthe content hash to be validated.
Returns any error an error object if the given value is not a valid date
Checks that the given value is not before the given min date
contentthe content hash to be validated.
Returns any error an error object if the given value is not a valid date
Checks that the given value is a valid number in the right type (number, integer, float)
contentthe content hash to be validated.
Returns any error an error object if the given value is not a valid number***
Checks that the given value is not before the given min value
contentthe content hash to be validated.
Returns any error an error object if the given value is not a valid date
Checks that the given value is not before the given min date
contentthe content hash to be validated.
Returns any error an error object if the given value is not a valid date
Changes the case of a string to the given value (upper, lower)
Checks that the given string has a minimum length
contentthe content hash to be validated.
Returns any error an error object if the given value is too short
Checks that the given string does not exeed the maximum length
contentthe content hash to be validated.
Returns any error an error object if the given value is too long
Checks that the given string has a minimum length
contentthe content hash to be validated.
Returns any error an error object if the given value is not a valid date
Creates the field splitter for a field, if this field is a multi field
fieldDefinitionThe field_definition for this field.fieldNameThe name of the current field
Parses a string and try to convert it in a valid number. If the string does not match a valid number it will return the error message, else the parsed number.
numberStringThe string to be checkedtypeThe expected type ["float", "integer", "number"]decimalSeparatorThe used decimal separator.
Creates the field splitter for a field, if this field is a multi field
fieldDefinitionThe field_definition for this field.fieldNameThe name of the current field
Checks if a given string looks like a valid email.
fieldDefinitionThe field_definition for this field.fieldNameThe name of the current field
Returns any The check
Set the default value if no value is there
fieldDefinitionThe field_definition for this field.fieldNameThe name of the current field
Returns any checks A list of checks to be perfomred
Checks a given string value. Checks the length and if it matches a given regular expression
fieldDefinitionThe field_definition for this field.fieldNameThe name of the current field
Returns any checks A list of checks to be perfomred
Extends Interceptor
This interceptor cares about the handling of the messages. It will add the hops and copies the messages
configendpoint