Skip to content

Core package contents

Terry Brady edited this page Apr 1, 2014 · 11 revisions

File analyzer component packages

The Core Package has no dependencies other than the standard Java Libraries. The rules within the Core package are intended to be simple rules of broad interest to many institutions.

File Test Rules

File Import Rules

Import Delimited File

This rule will import a delimited file (comma separated, tab separated, etc). Please specify the delimiter character to use.

Regular Expression Parser

This rule will parse each line of a file and add it to the results table. This rule requires an understanding of regular expressions.

screen shot

screen shot

Multi Parser

This rule will parse each line of a file against a sequence of regular expressions. Resulting values are stored in named matching groups. The sequence of patterns to apply to the file are stored in a rule file.

screen shot

screen shot

[COLS]
FIRST,LAST,ID,COST

[PATTERNS]
# Sample Comment 1
^(?<FIRST>[^\t\-]+)-(?<ID>[^\t]+)\t(?<LAST>[^\t]+).*\$(?<COST>\d+).*$
^(?<FIRST>[^\t\-]+)-(?<ID>[^\t]+)\t(?<LAST>[^\t]+).*$
# Sample Comment 2
^(?<FIRST>[^\t\-]+)\t(?<LAST>[^\t]+).*\$(?<COST>\d+).*$
^(?<FIRST>[^\t\-]+)\t(?<LAST>[^\t]+).*$
^$

screen shot

Count Key

Count the number of times a key value appears in a file.

screen shot

screen shot

Counter Compliance - CSV

Counter Compliance (CSV)

In the core package, the Counter Compliance tests apply only to text files. Use the updated version in the Demo package to parse XLSX files as well. The Counter Compliance Importer operates on a single file rather than on a collection of files.

See Counter compliant reports

Clone this wiki locally