createGetter(modelClass, attribute);
createField(modelClass, attribute);
constructorArgs.add(makeConstructorArg(attribute));
}
final Block constructor = modelClass.method("public %s(%s)", element.fullyQualifiedName, join(", ", constructorArgs));
for (Element child : element.children) {
constructor.add("this.%s = %s;", child.valueHandlerMethodName, child.valueHandlerMethodName);
}
for (Element attribute : element.attributes) {
constructor.add("this.%s = %s;", attribute.valueHandlerMethodName, attribute.valueHandlerMethodName);