labs4capella / python4capella

Python for Capella
Eclipse Public License 2.0
53 stars 10 forks source link

Check the compatibility between the Java object/class in the Python constructor. #135

Closed ylussaud closed 2 years ago

ylussaud commented 2 years ago

At the moment you can create any Python object with any Java object as parameter, this should be restricted to prevent mistakes. See this discussion for more details.

ylussaud commented 2 years ago

This can be done using:

get_e_classifier(ns_uri, eclass_name).isInstance(java_object)

A lot of customization will need modification by hand...