use of org.vcell.pathway.FragmentFeature in project vcell by virtualcell.
the class PathwayReaderBiopax3 method addObjectFragmentFeature.
private FragmentFeature addObjectFragmentFeature(Element element) {
FragmentFeature fragmentFeature = new FragmentFeature();
addAttributes(fragmentFeature, element);
for (Object child : element.getChildren()) {
if (child instanceof Element) {
Element childElement = (Element) child;
if (!addContentFragmentFeature(fragmentFeature, element, childElement)) {
showUnexpected(childElement);
}
}
}
pathwayModel.add(fragmentFeature);
return fragmentFeature;
}
use of org.vcell.pathway.FragmentFeature in project vcell by virtualcell.
the class PathwayReaderBiopax3 method addObjectEntityFeature.
private EntityFeature addObjectEntityFeature(Element element) {
if (element.getChildren().size() == 0) {
EntityFeatureProxy proxy = new EntityFeatureProxy();
addAttributes(proxy, element);
pathwayModel.add(proxy);
return proxy;
}
for (Object child : element.getChildren()) {
if (child instanceof Element) {
Element childElement = (Element) child;
if (childElement.getName().equals("BindingFeature")) {
BindingFeature thingie = addObjectBindingFeature(childElement);
pathwayModel.add(thingie);
return thingie;
} else if (childElement.getName().equals("FragmentFeature")) {
FragmentFeature thingie = addObjectFragmentFeature(childElement);
pathwayModel.add(thingie);
return thingie;
} else if (childElement.getName().equals("ModificationFeature")) {
ModificationFeature thingie = addObjectModificationFeature(childElement);
pathwayModel.add(thingie);
return thingie;
}
}
}
EntityFeature entityFeature = new EntityFeatureImpl();
addAttributes(entityFeature, element);
for (Object child : element.getChildren()) {
if (child instanceof Element) {
Element childElement = (Element) child;
if (!addContentEntityFeature(entityFeature, element, childElement)) {
showUnexpected(childElement);
}
}
}
pathwayModel.add(entityFeature);
return entityFeature;
}
use of org.vcell.pathway.FragmentFeature in project vcell by virtualcell.
the class PathwayReader method addObjectFragmentFeature.
private FragmentFeature addObjectFragmentFeature(Element element) {
FragmentFeature fragmentFeature = new FragmentFeature();
addAttributes(fragmentFeature, element);
for (Object child : element.getChildren()) {
if (child instanceof Element) {
Element childElement = (Element) child;
if (!addContentFragmentFeature(fragmentFeature, element, childElement)) {
showUnexpected(childElement, fragmentFeature);
}
}
}
pathwayModel.add(fragmentFeature);
return fragmentFeature;
}
Aggregations