Wichtig
Kleinigkeit
Fehlerbehebung
Wichtig
Verbesserung
Die Legacy-Interfaces MetaAttribute und MetaElement führen zu inkompatiblen APIs mit dem neuen Modell. Dies erzwingt unsinnige Casts, die komplett vermieden werden können, wenn MetaAttribut durch TLStructuredTypePart, MetaElement durch TLStructuredType und Attributed durch TLObject ersetzt wird.
Code-Migration
- MetaElement -> TLClass
- MetaAttribute -> TLStructuredTypePart
- Attributed -> TLObject, oder notfalls Wrapper
Spezialfunktionen, die nicht in den jeweiligen Oberinterfaces definiert sind, müssen aus Utility-Klassen aufgerufen werden:
- MetaElement -> MetaElementUtil
- MetaAttribute -> AttributeOperations
- Attributed -> AttributeOperations
Mit 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
- \bMetaAttribute\b => TLStructuredTypePart
- \bAttributed\b => Wrapper
Test
Kein Test.