return result.toString();
}
private void debugOutputLayerElements(final String regexpElement, final String regexpAttribute, StringBuffer result, ArrayList<Element> layers) {
for (int i=0; i<layers.size(); i++) {
Element layer = layers.get(i);
String layerType = " +";
if (!layer.isVisible()) {
layerType = " -";
}
result.append(
"\n" + layerType + getIdText(layer) +
"\n" + StringHelper.whitespace(layerType.length()) + layer.getElementStateString(StringHelper.whitespace(layerType.length()), regexpAttribute));
result.append(outputElement(layer, " ", regexpElement, regexpAttribute));
}
}