Class StandardsMatcherPhase1
java.lang.Object
org.dlese.dpc.schemedit.standards.adn.util.StandardsMatcherPhase1
Tool to help match asf and adn standards, and to identify standards that cannot be matched. The output of
reports generated here can be manipulated into tab-delimited form and then imported into spreadsheets with
the goal of creating a table in which the mappings between asfId and adn records is made.
- Author:
- Jonathan Ostwald
-
Constructor Summary
ConstructorsConstructorDescriptionStandardsMatcherPhase1(String standardsDocPath, int level) Constructor for the StandardsMatcherPhase1 object - builds two data structures that are then used to generate reports: 1 - "idMap" -- which is initialized to hold an empty entry for each ASN id (the entry will later be filled) 2 - "matchKeyIdMap" -- which holds an entry (an ASN ID) for each match key (when ASN and ADN stds have same match keys). -
Method Summary
Modifier and TypeMethodDescriptionstatic voidThe main program for the StandardsMatcherPhase1 classvoidTry to find an ASN standard for each ADN 4th level standard.
-
Constructor Details
-
StandardsMatcherPhase1
Constructor for the StandardsMatcherPhase1 object - builds two data structures that are then used to generate reports: 1 - "idMap" -- which is initialized to hold an empty entry for each ASN id (the entry will later be filled) 2 - "matchKeyIdMap" -- which holds an entry (an ASN ID) for each match key (when ASN and ADN stds have same match keys).
-
-
Method Details
-
matchStandards
public void matchStandards()Try to find an ASN standard for each ADN 4th level standard. Populates following data structures:- unmatchedADN - the adn standards for which no asf standard could be found. a mapping from adnMatchKey to adnText
- idMap - (previously populated by creating an entry for each leaf ASN node) - mapping from asfId. When a match is made, the idMap entry is set to the adn text.
- matched - list of matched keys (the values can be found in idMap)
- unmatchedASN - list of asfKeys that were not matched. These structures are printed out in "report"
-
main
The main program for the StandardsMatcherPhase1 class- Parameters:
args- The command line arguments
-