Detailed Description of Validate IC

Tests the input string as an ICO (Czech identification number for legal persons) and verifies its validity. Only valid ICO values are stored in the output column "out". If the ICO value is invalid then a scoring flag indicating an error in the ICO value is set and an empty value is written to the output. The property allowCleaning allows execution of ICO cleansing before the validation. The property preserveInputValue determines whether the original or cleansed ICO value is written to the output (after successful validation).


Top of page

Example: Example
<step id='alg' className='cz.adastra.cif.tasks.clean.ValidateICAlgorithm'>
        <properties>
                <in>text</in>
                <out>dummy</out>
                <omitInvalidIC>true</omitInvalidIC>
                <scorer explanationColumn='explanation'>
                        <scoringEntries>
                                <scoringEntry key='IC_NULL' score='100' explain='true' />
                                <scoringEntry key='IC_BAD_FORMAT' score='200' explain='true' />
                                <scoringEntry key='IC_BAD_CHECKSUM' score='400' explain='true' />
                                <scoringEntry key='IC_NORMALIZED' score='50' explain='true' />
                        </scoringEntries>
                </scorer>
        </properties>
</step>

iWay Software