Example: BiDiStringTransformation API

An example of BiDiStringTransformation API illustrates how to create bidirectional language transformation of a string.

Purpose

The BiDiStringTransformation API allows the transformation of a string.

Parameters

The BiDiStringTransformation API has the following signature:

BiDiStringTransformation(String str, String FormBiDiFmt, String ToBiDiFmt) where:
  • str is the string to transform
  • FormBiDiFmt is the current bidirectional language format of the string
  • ToBiDiFmt is the bidirectional language format to which the string should be transformed.

Transformation for String object

String inputString = "Hello world";
String inputBiDiFormat = "ILYNN";
String outputBiDiFormat = "VLYNN";
String outputString = WBIBiDiTransformation.BiDiStringTransformation(inputString, inputBiDiFormat, outputBiDiFormat);

For an example of bidirectional language transformation of a string, refer to the BiDiStringTransformation API example on the CD labeled WebSphere Process Server for Multiplatforms CD 2 or at the IBM passport site.

Draft comment:
The directory on CD 2 and the specific way to access the example to download on the IBM passport site must be proved by Sou Laosiri.