In a computer system executing a repository program and having a memory, a method is disclosed for versioning a UML model in the repository in accordance with an updated XML representation of the UML model. The method includes the steps of identifying differences between UML objects in the UML model and XML objects in the XML file. Where there is a difference between one of the UML objects and one of the XML objects, it is reserved as a ghost object. The ghost object is updated to match each corresponding one of the XML objects. Objects whose target references have been changed are reserved and updated. Finally, the UML objects are updated in the repository that refer to ghost objects updated in the preceding step. The method includes making changes to the ghost object Attributes, References and owned elements to match Attributes, References and owned elements, respectively, found in the XML object.
展开▼