Any workaround to get specification in constraint class

Hello, P4C

There is a method in Class Constraint, but it raised that getSpecification doesn’t exist.
def get_specification(self):
return self.get_java_object().getSpecification()

I think of using e_all_contents() in a remote case of Capella forum, but the relevance is far away.

Could any kind give me any hint?

I find a workaround by using getOwnedSpecification() method instead of getSpecification()

1 Like