major
minor
defect
major
minor
Currently, some settings for tl:TLModelPart can be configured in the AttributeSettings (unversioned).
It would be helpful if, in general, all tl:TLAnnotation s could be set in these AttributeSettings.
The following sequence should be used to determine the value of an annotation for a tl:TLStructuredTypePart.
- If the annotation is set on the attribute itself, it is used.
- If an AttributeSetting is defined for the attribute and the annotation is specified there, that annotation is used.
- If the annotation is set on the attribute’s target type, that annotation is used.
- If an `AttributeSetting` is defined for the type and the annotation is specified there, that annotation is used.
The following sequence should be used to determine the value of an annotation for a `tl:TLStructuredType`. If the annotation is specified here, it is used.
- If the annotation is set on the type, it is used.
- If an `AttributeSetting` is defined for the type and the annotation is specified here, that annotation is used.
Code Migration
Package name of AttributeSettings
In the application configuration, replace `service-class="com.top_logic.element.meta.AttributeSettings"` with `service-class="com.top_logic.model.annotate.util.AttributeSettings"`.
Configuration of AttributeSettings
In the application configuration, within the `attribute-setting ` tags, replace the string ` config-type ` with `config-name `.
The configurations `export-binding`, ` tag-provider`, ` filter-provider `, and ` field-provider ` as children of `attribute-setting ` are now wrapped:
If the configured provider has no configuration, ` class ` must be replaced with ` impl `.
If the configured provider has its own configuration, the provider must be replaced according to the following schema.
<tag-provider class="com.tl.ProviderClass" attr1="val1"..> <sub-configuration.../> </tag-provider>
is replaced by
<tag-provider> <impl class="com.tl.ProviderClass" attr1="val1"..> <sub-configuration.../> </impl> </tag-provider>
The ` fullTextRelevant ` and ` search-relevant ` configurations in ` attribute-setting ` must now be written as tags:
<attribute-setting> <fulltext-relevant value="false"/> <search-relevant value="false"/> </attribute-setting>
Test
- Refactoring, no additional test.