public abstract class HierarchyNetworkEntity extends Object implements GraphEntity
DELETE, INSERT, MODIFIED, UNMODIFIED
Constructor and Description |
---|
HierarchyNetworkEntity(String id,
String labelA,
String labelB,
de.unirostock.sems.xmlutils.ds.DocumentNode docA,
de.unirostock.sems.xmlutils.ds.DocumentNode docB)
Instantiates a new hierarchy network 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 this entity.
|
String |
getLabel()
Gets the label of this entity.
|
int |
getModification()
Gets the modification of this entity.
|
void |
setDocA(de.unirostock.sems.xmlutils.ds.DocumentNode docA)
Sets the document node from the original document.
|
void |
setDocB(de.unirostock.sems.xmlutils.ds.DocumentNode docB)
Sets the document node from the modified document.
|
void |
setLabelA(String labelA)
Sets the label from the original document.
|
void |
setLabelB(String labelB)
Sets the label from the modified document.
|
void |
setSingleDocument()
Sets the single document flag.
|
public HierarchyNetworkEntity(String id, String labelA, String labelB, de.unirostock.sems.xmlutils.ds.DocumentNode docA, de.unirostock.sems.xmlutils.ds.DocumentNode docB)
id
- the id of this entitylabelA
- the label alabelB
- the label bdocA
- the doc adocB
- the doc bpublic void setDocA(de.unirostock.sems.xmlutils.ds.DocumentNode docA)
docA
- the original document nodepublic void setLabelA(String labelA)
labelA
- the original labelpublic void setDocB(de.unirostock.sems.xmlutils.ds.DocumentNode docB)
docB
- the modified document nodepublic void setLabelB(String labelB)
labelB
- the modified labelpublic 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.