public List<UmlProperty> getAttributes() {
List<String> attributeStrings =
((StringTableModel) attributeTable.getModel()).getEntries();
List<UmlProperty> result = new ArrayList<UmlProperty>();
for (String attributeString : attributeStrings) {
UmlProperty property = (UmlProperty) UmlProperty.getPrototype().clone();
property.setName(attributeString);
result.add(property);
}
return result;
}