Package de.unirostock.sems.bives.ds.hn
Class HierarchyNetworkEntity
- java.lang.Object
-
- de.unirostock.sems.bives.ds.hn.HierarchyNetworkEntity
-
- All Implemented Interfaces:
GraphEntity
- Direct Known Subclasses:
HierarchyNetworkComponent
,HierarchyNetworkVariable
public abstract class HierarchyNetworkEntity extends Object implements GraphEntity
The Class HierarchyNetworkEntity.- Author:
- Martin Scharm
-
-
Field Summary
-
Fields inherited from interface de.unirostock.sems.bives.ds.GraphEntity
DELETE, INSERT, MODIFIED, UNMODIFIED
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
HierarchyNetworkEntity
public 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.- Parameters:
id
- the id of this entitylabelA
- the label alabelB
- the label bdocA
- the doc adocB
- the doc b
-
-
Method Detail
-
setDocA
public void setDocA(de.unirostock.sems.xmlutils.ds.DocumentNode docA)
Sets the document node from the original document.- Parameters:
docA
- the original document node
-
setLabelA
public void setLabelA(String labelA)
Sets the label from the original document.- Parameters:
labelA
- the original label
-
setDocB
public void setDocB(de.unirostock.sems.xmlutils.ds.DocumentNode docB)
Sets the document node from the modified document.- Parameters:
docB
- the modified document node
-
setLabelB
public void setLabelB(String labelB)
Sets the label from the modified document.- Parameters:
labelB
- the modified label
-
getA
public de.unirostock.sems.xmlutils.ds.DocumentNode getA()
Gets the original document node.- Returns:
- the original document node
-
getB
public de.unirostock.sems.xmlutils.ds.DocumentNode getB()
Gets the modified document node.- Returns:
- the modified document node
-
getId
public String getId()
Gets the id of this entity.- Returns:
- the id
-
getLabel
public String getLabel()
Gets the label of this entity.- Returns:
- the label
-
getModification
public int getModification()
Gets the modification of this entity.- Returns:
- the modification
-
setSingleDocument
public void setSingleDocument()
Sets the single document flag.
-
-