Class IdConnector
- java.lang.Object
-
- de.unirostock.sems.bives.algorithm.Connector
-
- de.unirostock.sems.bives.algorithm.general.IdConnector
-
public class IdConnector extends Connector
Connector to connect nodes with same id. If the ids aren't unique in both documents it'll do exactly nothing.- Author:
- Martin Scharm
-
-
Field Summary
-
Fields inherited from class de.unirostock.sems.bives.algorithm.Connector
allowDifferentIds, careAboutNames, conMgmt, docA, docB, stricterNames
-
-
Constructor Summary
Constructors Constructor Description IdConnector(de.unirostock.sems.xmlutils.ds.TreeDocument docA, de.unirostock.sems.xmlutils.ds.TreeDocument docB, boolean requireSameLabel)
Instantiates a new XyDiffConnector.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
connect()
Inherit to search for connections.protected void
init()
Initializes the extension.-
Methods inherited from class de.unirostock.sems.bives.algorithm.Connector
findConnections, getConnections, getDocA, getDocB, nodeAssign
-
-
-
-
Constructor Detail
-
IdConnector
public IdConnector(de.unirostock.sems.xmlutils.ds.TreeDocument docA, de.unirostock.sems.xmlutils.ds.TreeDocument docB, boolean requireSameLabel)
Instantiates a new XyDiffConnector. In this setting we'll run an ID mapper before we do our work.- Parameters:
docA
- the original documentdocB
- the modified documentrequireSameLabel
- if true, both id-tags need to have the same label
-
-
Method Detail
-
connect
protected void connect() throws BivesConnectionException
Description copied from class:Connector
Inherit to search for connections.- Specified by:
connect
in classConnector
- Throws:
BivesConnectionException
- the bives connection exception
-
init
protected void init() throws BivesConnectionException
Description copied from class:Connector
Initializes the extension.- Specified by:
init
in classConnector
- Throws:
BivesConnectionException
- the bives connection exception
-
-