public abstract class ReactionNetworkEntity extends Object implements GraphEntity
Modifier and Type | Field and Description |
---|---|
protected de.unirostock.sems.xmlutils.ds.DocumentNode |
docA
The original document.
|
protected de.unirostock.sems.xmlutils.ds.DocumentNode |
docB
The modified document.
|
protected String |
id
The id of this entity.
|
protected String |
labelA
The labels in original doc.
|
protected String |
labelB
The labels in modified doc.
|
protected boolean |
singleDoc
The single doc flag if in single-doc-operation-mode.
|
DELETE, INSERT, MODIFIED, UNMODIFIED
Constructor and Description |
---|
ReactionNetworkEntity(String entityId,
String labelA,
String labelB,
de.unirostock.sems.xmlutils.ds.DocumentNode docA,
de.unirostock.sems.xmlutils.ds.DocumentNode docB)
Instantiates a new entity.
|
Modifier and Type | Method and Description |
---|---|
de.unirostock.sems.xmlutils.ds.DocumentNode |
getA()
Gets the original document node.
|
de.unirostock.sems.xmlutils.ds.DocumentNode |
getB()
Gets the modified document node.
|
String |
getId()
Gets the id of the entity.
|
String |
getLabel()
Gets the label.
|
int |
getModification()
Gets the modification of this entity.
|
void |
setDocA(de.unirostock.sems.xmlutils.ds.DocumentNode docA)
Sets the original document node.
|
void |
setDocB(de.unirostock.sems.xmlutils.ds.DocumentNode docB)
Sets the modified document node.
|
void |
setLabelA(String labelA)
Sets the original label.
|
void |
setLabelB(String labelB)
Sets the modified label.
|
void |
setSingleDocument()
Sets the single document flag.
|
protected String id
protected String labelA
protected String labelB
protected de.unirostock.sems.xmlutils.ds.DocumentNode docA
protected de.unirostock.sems.xmlutils.ds.DocumentNode docB
protected boolean singleDoc
public ReactionNetworkEntity(String entityId, String labelA, String labelB, de.unirostock.sems.xmlutils.ds.DocumentNode docA, de.unirostock.sems.xmlutils.ds.DocumentNode docB)
entityId
- the entity idlabelA
- the label of that entity in the original documentlabelB
- the label of that entity in the modified documentdocA
- the original documentdocB
- the modified documentpublic void setDocA(de.unirostock.sems.xmlutils.ds.DocumentNode docA)
docA
- the original document nodepublic void setLabelA(String labelA)
labelA
- the label in the original documentpublic void setDocB(de.unirostock.sems.xmlutils.ds.DocumentNode docB)
docB
- the modified document nodepublic void setLabelB(String labelB)
labelB
- the label in the modified documentpublic de.unirostock.sems.xmlutils.ds.DocumentNode getA()
public de.unirostock.sems.xmlutils.ds.DocumentNode getB()
public String getId()
public String getLabel()
public int getModification()
public void setSingleDocument()
Copyright © 2019 SEMS project @ University of Rostock. All rights reserved.