DLESE Tools
v1.6.0

org.dlese.dpc.schemedit.standards.adn.util
Class StandardsMatcherPhase1

java.lang.Object
  extended by org.dlese.dpc.schemedit.standards.adn.util.StandardsMatcherPhase1

public class StandardsMatcherPhase1
extends Object

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
StandardsMatcherPhase1(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
static void main(String[] args)
          The main program for the StandardsMatcherPhase1 class
 void matchStandards()
          Try to find an ASN standard for each ADN 4th level standard.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardsMatcherPhase1

public StandardsMatcherPhase1(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 Detail

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

    public static void main(String[] args)
    The main program for the StandardsMatcherPhase1 class

    Parameters:
    args - The command line arguments

    DLESE Tools
    v1.6.0