public class HierarchyNetworkComponent extends HierarchyNetworkEntity
DELETE, INSERT, MODIFIED, UNMODIFIED
Constructor and Description |
---|
HierarchyNetworkComponent(HierarchyNetwork hn,
String labelA,
String labelB,
de.unirostock.sems.xmlutils.ds.DocumentNode docA,
de.unirostock.sems.xmlutils.ds.DocumentNode docB)
Instantiates a new hierarchy network component.
|
Modifier and Type | Method and Description |
---|---|
void |
addChildA(HierarchyNetworkComponent component)
Adds a sub-component (below in hierarchy) as it is defined in the original version.
|
void |
addChildB(HierarchyNetworkComponent component)
Adds a sub-component (below in hierarchy) as it is defined in the modified version.
|
void |
addVariable(HierarchyNetworkVariable var)
Adds a variable.
|
int |
getModification()
Gets the modification of this entity.
|
HierarchyNetworkComponent |
getParentA()
Gets the parent component as it is defined in the original version.
|
HierarchyNetworkComponent |
getParentB()
Gets the parent component as it is defined in the modified version.
|
List<HierarchyNetworkVariable> |
getVariables()
Gets the variables hosted in this component.
|
void |
setParentA(HierarchyNetworkComponent component)
Sets the parent component (above in hierarchy) as it is defined in the original version.
|
void |
setParentB(HierarchyNetworkComponent component)
Sets the parent component (above in hierarchy) as it is defined in the modified version.
|
getA, getB, getId, getLabel, setDocA, setDocB, setLabelA, setLabelB, setSingleDocument
public HierarchyNetworkComponent(HierarchyNetwork hn, String labelA, String labelB, de.unirostock.sems.xmlutils.ds.DocumentNode docA, de.unirostock.sems.xmlutils.ds.DocumentNode docB)
hn
- the hierarchy networklabelA
- the label as defined in the original documentlabelB
- the label as defined in the modified documentdocA
- the original documentdocB
- the modified documentpublic List<HierarchyNetworkVariable> getVariables()
public void addVariable(HierarchyNetworkVariable var)
var
- the variablepublic void addChildA(HierarchyNetworkComponent component)
component
- the sub-componentpublic void addChildB(HierarchyNetworkComponent component)
component
- the sub-componentpublic void setParentA(HierarchyNetworkComponent component)
component
- the new parent componentpublic void setParentB(HierarchyNetworkComponent component)
component
- the new parent componentpublic HierarchyNetworkComponent getParentA()
public HierarchyNetworkComponent getParentB()
public int getModification()
getModification
in class HierarchyNetworkEntity
Copyright © 2019 SEMS project @ University of Rostock. All rights reserved.