-
Notifications
You must be signed in to change notification settings - Fork 10
Description
Hello and merry Christmas to you 😃
I have an use case where I would like to explore the schema of a specific AUTOSAR version programmatically.
Please correct me if I'm wrong ... it seems to be impossible to do so without creating a valid model as you go, since there is no interface exposed that allows to query for valid sub element types. There is ElementType.find_sub_element(name, version), but I need an Element object to get a list of valid sub elements, which can't be created standalone, they have to be created within a proper context of the model.
Would you be willing to support this use case?
I think an "easy" option would be to allow Element object creation out of context. Then you could just query its properties. But that would be useless for any other use case and might be very confusing.
An other option would be to expose more ElementType interfaces I think. In addition to the already existing properties I would be interested in content_type and a possibility to get valid sub element types.
Is that feasible?
Regards,
Ed