use of org.vcell.pathway.persistence.BiopaxProxy.ConversionProxy in project vcell by virtualcell.
the class PathwayReaderBiopax3 method addObjectConversion.
private Conversion addObjectConversion(Element conversionElement) {
if (conversionElement.getChildren().size() == 0) {
ConversionProxy proxy = new ConversionProxy();
addAttributes(proxy, conversionElement);
pathwayModel.add(proxy);
return proxy;
}
Conversion conversion = new ConversionImpl();
addAttributes(conversion, conversionElement);
for (Object child : conversionElement.getChildren()) {
if (child instanceof Element) {
if (!addContentConversion(conversion, conversionElement, (Element) child)) {
showUnexpected((Element) child);
}
}
}
pathwayModel.add(conversion);
return conversion;
}
Aggregations