*/
protected List<TypeBodyDeclaration> createMembers(T model) {
List<ModelProperty> properties = model.getProperties();
List<TypeBodyDeclaration> body = new ArrayList<TypeBodyDeclaration>();
for (ModelProperty property : properties) {
TypeBodyDeclaration member = createField(property);
body.add(member);
}
for (ModelProperty property : properties) {
TypeBodyDeclaration getter = createGetter(property);
body.add(getter);
TypeBodyDeclaration setter = createSetter(property);
body.add(setter);
TypeBodyDeclaration altGetter = createAltGetter(property);
if (altGetter != null) {
body.add(altGetter);
}
TypeBodyDeclaration altSetter = createAltSetter(property);
if (altSetter != null) {
body.add(altSetter);
}
TypeBodyDeclaration optionGetter = createOptionGetter(property);
body.add(optionGetter);
TypeBodyDeclaration optionSetter = createOptionSetter(property);
body.add(optionSetter);
}
body.add(createCopier(model));
body.add(createWritableWrite(model));