private void dumpStructure(StringBuffer buffer, String indent,
Structure structure) {
buffer.append(indent + "type=Structure\n");
Iterator fields = structure.fields();
while (fields.hasNext()) {
Field field = (Field) fields.next();
buffer.append(indent + " Field:\n");
buffer.append(indent + " name=" + field.getName() + "\n");
dumpType(field.getType(), indent + " ", buffer);
}
}