Major
Nice to have
Bugfix
Major
Enhancement
The legacy MetaAttribute and MetaElement interfaces result in incompatible APIs with the new model. This forces nonsensical casts that can be completely avoided by replacing MetaAttribute with TLStructuredTypePart, MetaElement with TLStructuredType, and Attributed with TLObject.
Code migration
- MetaElement -> TLClass
- MetaAttribute -> TLStructuredTypePart
- Attributed -> TLObject, or wrapper if necessary
Special functions that are not defined in the respective parent interfaces must be called from utility classes:
- MetaElement -> MetaElementUtil
- MetaAttribute -> AttributeOperations
- Attributed -> AttributeOperations
With regexp:
- \bcom\.top_logic\.element\.meta\.Attributed\b => com.top_logic.knowledge.wrap.Wrapper
- \bcom\.top_logic\.element\.meta\.MetaAttribute\b => com.top_logic.model.TLStructuredTypePart
- \bcom\.top_logic\.element\.meta\.MetaElement\b => com.top_logic.model.TLClass
- \bMetaElement\b => TLClass
- \bMetaAttributed\b => TLStructuredTypePart
- \bAttributed\b => wrapper
Test
No test.