for (Iterator i = getAttributes().iterator(); i.hasNext();) {
list.add(i.next());
}
for (Iterator i = getAttributeGroups().iterator(); i.hasNext();) {
AttributeGroup group = (AttributeGroup) i.next();
AttributeGroupInfo groupInfo
= (AttributeGroupInfo) group.getDefinition();
AttributesStructureInfo attributesStructureInfo
= groupInfo.getAttributesStructureInfo();
// If one of the dependent groups is an interface then we need to
// implement them, if the group does not have either an interface or a
// class name set then we need to implement its attributes as well.
if (attributesStructureInfo.getAPIAttributesInterface() != null) {
attributesStructureInfo.addImplementedAttributes(list);
} else if (attributesStructureInfo.getAPIAttributesClass() ==
null) {
System.out.println("Treating group " + group.getName()
+ " as an anonymous interface");
attributesStructureInfo.addImplementedAttributes(list);
}
}
}