Abbreviations
Although the ImpEx header definition language provides the most flexible way of using custom column translators, header declaration can be rather long.
You could shorten them a bit using the ImpEx alias syntax $xyz=.... You can also use regexp patterns and replacements to shorten frequently-used definitions. The following example shows how to use them to shorten classification columns declarations by giving them a new syntax. Check if the syntax shown in the example below is in your SAP Commerce local.properties file:
impex.header.replacement.1 = C@(\\w+) ... @$1[ system='\\$systemName', version='\\$systemVersion', translator='de...ClassificationAttributeTranslator']
All parameters starting with impex.header.replacement are parsed as ImpEx column replacement rules. The parameter has to end with a number that defines the priority of the rule. This way ambigous rules could be sorted.
So what is this for? The first part of the property C@(\w+) defines the new abbreviation pattern to be used to declare classification attribute columns. The second part is the replacement text including the attribute qualifer match group $1. In fact, it contains the original special column declaration. Both parts are to be separated by '...'.
So all that is needed now to declare a classification attribute column is this:
$systemName=MySys $systemVersion=1.0 INSERT_UPDATE Product; code[unique=true]; C@attr1; C@attr2 ; ...
Now the whole translator definition is hidden and you do not need to declare any helper alias for that. Nevertheless both alias definitions are mandatory to tell the classification column which system and version it should take its attribute from.