Importing a Rational Rose model details how to import a Rational Rose model, at which time you can also import its properties.
You must define which Rational Rose properties you want to import based on the tool, metaclass, and property name, for which you have to create an XML map file. During the importing process in Rational Rhapsody, you point to the XML map file on the Import Options window.
After you have imported your Rational Rose properties, you have to use the Rational Rhapsody application programming interface (API) to post-process your model. For information about how to handle properties using the Rational Rhapsody API, see this documentation.
Public Sub PrintFinalClasses(p As IRPPackage)
'
'Routine to print names of all final classes imported from Rose
'
Dim allClassifiers As RPCollection
Set allClassifiers = p.nestedClassifiers
Dim c As RPClassifier
For Each c In allClassifiers
isClass = c.isOfMetaClass("Class")
If isClass Then
On Error Resume Next
If c.getPropertyValue("Model.Class.Java_Final") = "True" Then
Print c.getFullPathName
End If
End If
Next
End Sub