use of cbit.vcell.model.NodeReference in project vcell by virtualcell.
the class Xmlproducer method getXML.
/**
* This method returns a XML representation of a diagram object type.
* Creation date: (2/27/2001 5:13:26 PM)
* @return Element
* @param param cbit.vcell.model.Diagram
*/
private Element getXML(Diagram param) {
Element diagram = new Element(XMLTags.DiagramTag);
// add attributes
diagram.setAttribute(XMLTags.NameAttrTag, mangle(param.getName()));
diagram.setAttribute(XMLTags.StructureAttrTag, mangle(param.getStructure().getName()));
// Add NodeReferences subelements
for (NodeReference node : param.getNodeFullList()) {
diagram.addContent(getXML(node));
}
for (NodeReference node : param.getNodeMoleculeList()) {
diagram.addContent(getXML(node));
}
for (NodeReference node : param.getNodeRuleList()) {
diagram.addContent(getXML(node));
}
return diagram;
}
Aggregations