6.5 Using Functions to Process Values

To process the transformation-source node values and map them to the transformation-destination node, you use functions. This section explains the various functions to be used for various cases. For details about how to use a function for mapping, see 6.4.2 Processing the Transformation-source Node Values and Mapping Them to the Transformation-destination Node.

The following table lists the functions.

Table 6-3 List of functions

ClassificationFunction nameExplanation
String--basedConcatenateConcatenates multiple strings.
Acquire substringExtracts a substring from a string.
Acquire string lengthAssigns a string character count to a mapping destination.
Check stringVerifies that the specified string is contained in a string or that the string begins with the specified string, and assigns the logical value to a mapping destination.
Trim nodeRemoves the leading and trailing spaces from a string. Also replaces consecutive spaces between strings with a single space.
Number--basedConvert number formatConverts the number format.
Perform node operationComputes (+, --, *, div, or mod) numbers.
Round nodeRounds decimal digits (round off, round down, or round up).
Sum up nodesSums up the node numbers of multiple node sets.
Bit operationsNOT operationExecute NOT operation.
Logical operationExecutes logical operation (AND, OR, XOR).
Shift operationExecutes shift operation.
Node--basedAcquire node countAssigns a node count to a mapping destination.
Acquire node nameAssigns a node name to a mapping destination.
Check nodeVerifies that the specified transformation-source node exists and assigns the logical value to a mapping destination.
Control--basedLoop nodeMaps looping.
Choose nodeOutputs different values according to conditions.
OtherSet constantAssigns a specified value to a mapping destination.
Replace valueConverts the mapping source value based on the specification of the conversion table and assigns value to the mapping destination.
Radix ConversionExecutes basic transformation.
CustomInvoke a Java program created by the user.
Organization of this section
6.5.1 Concatenating Multiple Strings
6.5.2 Extracting a Substring from a String
6.5.3 Assigning a String Character Count
6.5.4 Verifying That the Specified String Is Present or That the String Begins with the Specified String
6.5.5 Removing Spaces from a String
6.5.6 Converting the Number Format
6.5.7 Computing Numbers
6.5.8 Rounding Decimal Digits
6.5.9 Summing Up the Node Numbers of Multiple Node Sets
6.5.10 Using NOT operation
6.5.11 Using logical operation
6.5.12 Using shift operation
6.5.13 Assigning a Node Count
6.5.14 Assigning a Node Name
6.5.15 Verifying That a Node Exists
6.5.16 Mapping Looping
6.5.17 Outputting Different Values According to Conditions
6.5.18 Assigning a Specified Value
6.5.19 Converting a Value with the Conversion Table
6.5.20 Performing basic number transformation
6.5.21 Assigning a Value to a Transformation-source Node Value
6.5.22 Doubling a Transformation-source Node Value
6.5.23 Invoke a Java program created by the user