BiDiBusObjTransformation()

The BiDiBusObjTransformation() method transforms BusObj type business objects from one bidirectional format to the other. Use this method within collaborations.

Syntax

BusObj BiDiBusObjTransformation(BusObj busObjIn, String formatIn, 
   String formatOut, boolean replace)

Parameters

busObjIn
The business object to transform. The object must be of the BusObj type.

formatIn
A string that represents the bidirectional format of the input business object content. See Table 87 for the valid values of this string. If this parameter is null, the method defaults to the standard Windows bidirectional format.

formatOut
A string that represents the bidirectional format of the output business object content. See Table 87 for the valid values of this string. If this parameter is null, the method defaults to the standard Windows bidirectional format.

replace
A value that specifies whether the input business object is to be replaced. The valid value is either true or false.

Table 87. Values for format strings

Letter position Purpose Values Description Default
1 Type I Implicit (Logical) I
V Visual
2 Direction L Left to Right L
R Right to Left
3 Symmetric swapping Y Symmetric swapping is on Y
N Symmetric swapping is off
4 Shaping Y Text is shaped N
N Text is not shaped
5 Numeric shaping H Hindi N
C Contextual
N Nominal

Return values

The return value is a transformed business object. If the method is unsuccessful, it returns a null value.

Exceptions

None.

Examples

This example transforms InputBOBusObj from the standard Windows bidirectional format to the visual bidirectional format.

BusObj dummyBusObj = null;
dummyBusObj = CwBidiEngine.BiDiBusObjTransformation(
                                          InputBOBusObj,
                                  "ILYNN",
                                  "VLYNN",true);

Copyright IBM Corp. 1997, 2004