xml.append(super.toXML());
List variables = new ArrayList(_localVariables.values());
Order order = new Order() {
public boolean lessThan(Object a, Object b) {
YVariable var1 = (YVariable) a;
YVariable var2 = (YVariable) b;
String var1Nm = var1.getName() != null ?
var1.getName() : var1.getElementName();
String var2Nm = var2.getName() != null ?
var2.getName() : var2.getElementName();
if (var1Nm != null && var2Nm != null) {
return var1Nm.compareTo(var2Nm) < 0;
} else if (var1Nm == null) {
return true;
} else {
return false;
}
}
};
Object[] sortedVars = Sorter.sort(order, variables.toArray());
if (null != sortedVars) {
for (int i = 0; i < sortedVars.length; i++) {
YVariable variable = (YVariable) sortedVars[i];
xml.append(variable.toXML());
}
}
xml.append("<processControlElements>");
xml.append(_inputCondition.toXML());