public abstract class Connector extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
allowDifferentIds
Are mappings of nodes with different ids allowed? see
Diff.ALLOW_DIFFERENT_IDS |
protected boolean |
careAboutNames
Do we care about names? see
Diff.CARE_ABOUT_NAMES |
protected SimpleConnectionManager |
conMgmt
The connection manager, holding node-mappings.
|
protected de.unirostock.sems.xmlutils.ds.TreeDocument |
docA
The original document.
|
protected de.unirostock.sems.xmlutils.ds.TreeDocument |
docB
The modified document.
|
protected boolean |
stricterNames
Should we handle names very strictly? see
Diff.STRICTER_NAMES |
Constructor and Description |
---|
Connector(de.unirostock.sems.xmlutils.ds.TreeDocument docA,
de.unirostock.sems.xmlutils.ds.TreeDocument docB)
Instantiates a new connector.
|
Connector(de.unirostock.sems.xmlutils.ds.TreeDocument docA,
de.unirostock.sems.xmlutils.ds.TreeDocument docB,
boolean allowDifferentIds,
boolean careAboutNames,
boolean stricterNames)
Instantiates a new connector.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
connect()
Inherit to search for connections.
|
void |
findConnections()
Find connections between nodes of both versions of your document.
|
SimpleConnectionManager |
getConnections()
Gets the connections.
|
de.unirostock.sems.xmlutils.ds.TreeDocument |
getDocA()
Gets the original document.
|
de.unirostock.sems.xmlutils.ds.TreeDocument |
getDocB()
Gets the modified document.
|
protected abstract void |
init()
Initializes the extension.
|
protected boolean |
nodeAssign(de.unirostock.sems.xmlutils.ds.TreeNode a,
de.unirostock.sems.xmlutils.ds.TreeNode b)
Assign two nodes to each other, as long as they don't have a connection.
|
protected boolean allowDifferentIds
Diff.ALLOW_DIFFERENT_IDS
protected boolean careAboutNames
Diff.CARE_ABOUT_NAMES
protected boolean stricterNames
Diff.STRICTER_NAMES
protected SimpleConnectionManager conMgmt
protected de.unirostock.sems.xmlutils.ds.TreeDocument docA
protected de.unirostock.sems.xmlutils.ds.TreeDocument docB
public Connector(de.unirostock.sems.xmlutils.ds.TreeDocument docA, de.unirostock.sems.xmlutils.ds.TreeDocument docB, boolean allowDifferentIds, boolean careAboutNames, boolean stricterNames)
docA
- the original documentdocB
- the modified documentallowDifferentIds
- 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
public Connector(de.unirostock.sems.xmlutils.ds.TreeDocument docA, de.unirostock.sems.xmlutils.ds.TreeDocument docB)
Diff.ALLOW_DIFFERENT_IDS
, Diff.CARE_ABOUT_NAMES
, and Diff.STRICTER_NAMES
.docA
- the original documentdocB
- the modified documentpublic de.unirostock.sems.xmlutils.ds.TreeDocument getDocA()
public de.unirostock.sems.xmlutils.ds.TreeDocument getDocB()
protected abstract void init() throws BivesConnectionException
BivesConnectionException
- the bives connection exceptionprotected abstract void connect() throws BivesConnectionException
BivesConnectionException
- the bives connection exceptionpublic final void findConnections() throws BivesConnectionException
BivesConnectionException
- the bives connection exceptionpublic final SimpleConnectionManager getConnections()
protected boolean nodeAssign(de.unirostock.sems.xmlutils.ds.TreeNode a, de.unirostock.sems.xmlutils.ds.TreeNode b) throws BivesConnectionException
a
- the node from the original treeb
- the node from the modified treeBivesConnectionException
- the bives connection exceptionCopyright © 2019 SEMS project @ University of Rostock. All rights reserved.