labs4capella / python4capella

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

PropertyValue.get_value() doesn't handle BooleanPropertyValue #134

Closed ylussaud closed 2 years ago

ylussaud commented 2 years ago

The code should be replaced by this:

    def get_value(self):
        """
        """
        if self.java_object.eClass().getName() == "BooleanPropertyValue":
            return self.get_java_object().isValue()
        else:
            return self.get_java_object().getValue()
ylussaud commented 2 years ago

see this discussion for more details.