Class XyDiffConnector


  • public class XyDiffConnector
    extends Connector
    The Class XyDiffConnector to map nodes as described in Cobena2002.
    Author:
    Martin Scharm
    • Field Detail

      • MAX_ATTR_DIST

        public static double MAX_ATTR_DIST
    • Constructor Detail

      • XyDiffConnector

        public XyDiffConnector​(de.unirostock.sems.xmlutils.ds.TreeDocument docA,
                               de.unirostock.sems.xmlutils.ds.TreeDocument docB,
                               boolean allowDifferentIds,
                               boolean careAboutNames,
                               boolean stricterNames)
        Instantiates a new XyDiffConnector. In this setting we'll run an ID mapper before we do our work.
        Parameters:
        docA - the original document
        docB - the modified document
        allowDifferentIds - may mapped entities have different ids? see Diff.ALLOW_DIFFERENT_IDS
        careAboutNames - should we care about names? see Diff.CARE_ABOUT_NAMES
        stricterNames - should we handle the names very strictly? see Diff.STRICTER_NAMES
      • XyDiffConnector

        public XyDiffConnector​(de.unirostock.sems.xmlutils.ds.TreeDocument docA,
                               de.unirostock.sems.xmlutils.ds.TreeDocument docB)
        Instantiates a new XyDiffConnector. In this setting we'll run an ID mapper before we do our work. Uses default values for the mapping, see Diff.ALLOW_DIFFERENT_IDS, Diff.CARE_ABOUT_NAMES, and Diff.STRICTER_NAMES.
        Parameters:
        docA - the original document
        docB - the modified document
      • XyDiffConnector

        public XyDiffConnector​(Connector preprocessor,
                               boolean allowDifferentIds,
                               boolean careAboutNames,
                               boolean stricterNames)
        Instantiates a new XyDiffConnector. Here we'll use `preprocessor` to find some connections before we start.
        Parameters:
        preprocessor - the connector to initiate the connections
        allowDifferentIds - may mapped entities have different ids? see Diff.ALLOW_DIFFERENT_IDS
        careAboutNames - should we care about names? see Diff.CARE_ABOUT_NAMES
        stricterNames - should we handle the names very strictly? see Diff.STRICTER_NAMES