387 classAttributes) |
387 classAttributes) |
388 self.__createTexts() |
388 self.__createTexts() |
389 self.__calculateSize() |
389 self.__calculateSize() |
390 |
390 |
391 return True |
391 return True |
|
392 |
|
393 def toDict(self): |
|
394 """ |
|
395 Public method to collect data to be persisted. |
|
396 |
|
397 @return dictionary containing data to be persisted |
|
398 @rtype dict |
|
399 """ |
|
400 return { |
|
401 "is_external": self.external, |
|
402 "no_attributes": self.noAttrs, |
|
403 "name": self.model.getName(), |
|
404 "attributes": self.model.getInstanceAttributes(), |
|
405 "methods": self.model.getMethods(), |
|
406 "class_attributes": self.model.getClassAttributes(), |
|
407 } |