Enhancement
A string field that is built for a tl.core:String typed attribute allows the entry of leading and trailing whitespace " My best Project ". As a rule, such an entry is not desired. You may also wish to normalize whitespace within the value to "My best Project".
Improvement
The type tl.core:Name, which is otherwise equivalent to String, now ensures that values are "trimmed" when entering values, i.e. leading and trailing whitespace is removed.
Application
Attributes that are to use the trim semantics can be converted to the type tl.core:Name. This can be done with the simple migration instruction:
<migration config:interface="com.top_logic.knowledge.service.migration.MigrationConfig" xmlns:config="http://www.top-logic.com/ns/config/6.0" > ... <processors> <change-part-type part="MyModule:MyType#myStringAttr" target="tl.core:Name"/> ... </processors> </migration>
Test
In tl-demo, the name attributes of DemoTypes now use the type tl.core:Name.