major
nice-to-have
defect
major
enhancement
The legacy interfaces `MetaAttribute ` and `MetaElement` result in APIs that are incompatible with the new model. This forces unnecessary casts, which 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 a 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
Using a regular expression:
- \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
- \bMetaAttribute\b => TLStructuredTypePart
- \bAttributed\b => Wrapper
Test
No test.