CharsetAwareEDICreationUnit
Class name |
com.ebd.hub.datawizard.iu.CharsetAwareEDICreationUnit |
Equal to the EDICreationUnit, but additionally checks the "UNC" segment for encoding.
Important notes:
Please do not modify the default encoding 8859_1 in Responses, otherwise, the output of the unit would be encoded again and return an incorrect result.
The Integration Unit treats the nodes UNA, UNB, UNT and UNZ in a particular way. Please avoid using node names using that prefix.
Parameters
All the parameters are mandatory.
Parameter name |
Allowed values |
Default value |
Description |
Add UNA-segment to result |
true, false |
true |
No UNA segment is added, if false. In that case, the default metacharacters will be used. |
Add value to segment counter |
|
0 |
This integer value will be added to the UNT segment counter. Negative values are allowed. |
Autocreate empty mandatory segments |
true, false |
true |
Mandatory segments will be created, even if they do not contain data. |
Cut line after 80 chars |
true, false |
true |
If true, line break after 80 characters. This option is necessary if the data is for an AS/400. |
Delimiters |
|
:+.? ' |
Defines the meta characters for the UNA segment. |
Length to cut line |
|
80 |
Number of characters until line break. |
One EDI-document per record |
true, false |
false |
If true, the segment counter is reset with each record. |
Replace umlauts |
true, false |
true |
If true, umlauts are replaced. |
Replace umlauts with checking case |
true, false |
false |
Takes the case and position of uppercase umlauts into consideration, when replacing them. If the uppercase umlaut stands at the beginning of a word or is followed by a blank, then the second character of the replacement characters will be written in lowercase, otherwise in uppercase. |
Return EDIFACT in uppercase completely |
true, false |
false |
If true, the complete EDIFACT file is returned in uppercase. Note: Even if the parameter is set to false, only capital letters are output by the Integration Unit if the EDIFACT field UNB→S001→0001 contains the value UNOA or is empty (UNOA is then used as the default value). |
Trim type (both,left,right) |
both, left, right |
both |
Defines, whether leading whitespaces, trailing whitespaces, or both will be removed, if Trim values is true. |
Trim values |
true, false |
true |
If true, values are trimmed as specified in Trim type. |
Write message in one line |
true, false |
false |
The entire message is written in a single line. |