use of cbit.vcell.model.Model.RbmModelContainer in project vcell by virtualcell.
the class ModelTable method getRbmForDatabase.
public static String getRbmForDatabase(Model model) {
// add the rbmModelContainer elements
RbmModelContainer rbmModelContainer = model.getRbmModelContainer();
if (rbmModelContainer != null && !rbmModelContainer.isEmpty()) {
Xmlproducer xmlProducer = new Xmlproducer(false);
Element rbmModelContainerElement = xmlProducer.getXML(rbmModelContainer);
Document doc = new Document();
Element clone = (Element) rbmModelContainerElement.clone();
doc.setRootElement(clone);
String xmlString = XmlUtil.xmlToString(doc, false);
return xmlString;
// System.out.println(xmlString);
}
return null;
}
Aggregations