private String getDataForSpecifications(Set specSet) {
StringBuffer specs = new StringBuffer();
for (Iterator iterator = specSet.iterator(); iterator.hasNext();) {
specs.append("<specificationData>");
YSpecification spec = (YSpecification) iterator.next();
specs.append("<id>").
append(spec.getID()).
append("</id>");
if (spec.getName() != null) {
specs.append("<name>").
append(spec.getName()).
append("</name>");
}
if (spec.getDocumentation() != null) {
specs.append("<documentation>").
append(spec.getDocumentation()).
append("</documentation>");
}
Iterator inputParams = spec.getRootNet().getInputParameters().values().iterator();
if (inputParams.hasNext()) {
specs.append("<params>");
while (inputParams.hasNext()) {
YParameter inputParam = (YParameter) inputParams.next();
specs.append(inputParam.toSummaryXML());
}
specs.append("</params>");
}
specs.append("<rootNetID>").
append(spec.getRootNet().getID()).
append("</rootNetID>");
specs.append("<version>").
append(spec.getBetaVersion()).
append("</version>");
specs.append("<status>").
append(_engine.getLoadStatus(spec.getID())).
append("</status>");
specs.append("</specificationData>");
}
return specs.toString();
}