use of org.vcell.pathway.InteractionImpl in project vcell by virtualcell.
the class PathwayReaderBiopax3 method addObjectInteraction.
private Interaction addObjectInteraction(Element element) {
if (element.getChildren().size() == 0) {
// if there are no children it must be a resource inside another object
InteractionProxy proxy = new InteractionProxy();
addAttributes(proxy, element);
pathwayModel.add(proxy);
return proxy;
}
Interaction interaction = new InteractionImpl();
addAttributes(interaction, element);
for (Object child : element.getChildren()) {
if (!addContentInteraction(interaction, element, (Element) child)) {
showUnexpected((Element) child);
}
}
pathwayModel.add(interaction);
return interaction;
}
use of org.vcell.pathway.InteractionImpl in project vcell by virtualcell.
the class PathwayReader method addObjectInteraction.
private Interaction addObjectInteraction(Element element) {
Interaction interaction = new InteractionImpl();
addAttributes(interaction, element);
for (Object child : element.getChildren()) {
if (!addContentInteraction(interaction, element, (Element) child)) {
showUnexpected((Element) child, interaction);
}
}
pathwayModel.add(interaction);
return interaction;
}
Aggregations