setName(chartElem.getAttribute("name"));
NodeList flowChartProcessList = chartElem.getElementsByTagName("preprocess");
if (flowChartProcessList.getLength() == 1) {
readChartItems((Element)flowChartProcessList.item(0), flowCharts, preProcessChartItemSpecifications);
} else if (flowChartProcessList.getLength() > 1) {
throw new FlowException("The flow chart '"+getName()+"' has more than one preprocess elements. ");
}
flowChartProcessList = chartElem.getElementsByTagName("process");
if (flowChartProcessList.getLength() == 1) {
readChartItems((Element)flowChartProcessList.item(0), flowCharts, processChartItemSpecifications);
} else if (flowChartProcessList.getLength() > 1) {
throw new FlowException("The flow chart '"+getName()+"' has more than one process elements. ");
}
flowChartProcessList = chartElem.getElementsByTagName("postprocess");
if (flowChartProcessList.getLength() == 1) {
readChartItems((Element)flowChartProcessList.item(0), flowCharts, postProcessChartItemSpecifications);
} else if (flowChartProcessList.getLength() > 1) {
throw new FlowException("The flow chart '"+getName()+"' has more than one postprocess elements. ");
}
}