|
Note
|
TODO Generate this list automatically from annotation - https://github.com/atlasmap/atlasmap/issues/173 |
The following table describes the available transformations. The date and
number types refer generically to any of the various forms of these
concepts. That is, number includes, for example, integer, long, double.
Date includes, for example, date, Time, ZonedDateTime.
| Transformation | Input Type | Output Type | Parameter (* = required) | Description |
|---|---|---|---|---|
|
number |
number |
None |
Return the absolute value of a number. |
|
date |
date |
|
Add days to a date. The default is 0 days. |
|
date |
date |
|
Add seconds to a date. The default is 0 seconds. |
|
string |
string |
string |
Append a string to the end of a string. The default is to append nothing. |
|
string |
string |
None |
Convert a phrase to a camelized string by removing whitespace, making the first word lowercase, and capitalizing the first letter of each subsequent word. |
|
string |
string |
None |
Capitalize the first character in a string. |
|
number |
number |
None |
Return the whole number ceiling of a number. |
|
any |
Boolean |
|
Return true if a field contains the specified value. |
|
number |
number |
|
Convert a number that represents an area to another unit. For
the |
|
number |
number |
|
Convert a number that represents a distance to another unit. For the
|
|
number |
number |
|
Convert a number that represents mass to another unit. For the
|
|
number |
number |
|
Convert a number that represents volume to another unit. For the
|
|
None |
date |
Note |
Return the current date. |
|
None |
date |
None |
Return the current date and time. |
|
None |
date |
None |
Return the current time. |
|
date |
number |
None |
Return the day of the week (1 through 7) that corresponds to the date. |
|
date |
number |
None |
Return the day of the year (1 through 366) that corresponds to the date. |
|
string |
Boolean |
|
Return true if a string ends with the specified |
|
any |
Boolean |
|
Return true if a field is equal to the specified |
|
string |
string |
None |
From a string that represents a file name, return the file extension without the dot. |
|
number |
number |
None |
Return the whole number floor of a number. |
|
any |
string |
|
In |
|
None |
string |
None |
Create a string that represents a random UUID. |
|
string |
number |
|
In a string, starting at 0, return the first index of the specified
|
|
any |
Boolean |
None |
Return true if a field is null. |
|
string |
number |
|
In a string, starting at 0, return the last index of the specified
|
|
any |
number |
None |
Return the length of the field, or |
|
string |
string |
None |
Convert a string to lowercase. |
|
string |
string |
None |
Replace consecutive whitespace characters with a single space and trim leading and trailing whitespace from a string. |
|
string |
string |
|
Insert the character supplied in |
|
string |
string |
|
Insert the character supplied in |
|
string |
string |
|
Prefix |
|
string |
string |
|
In a string, replace all occurrences of the supplied matching string with the
supplied |
|
string |
string |
|
In a string, replace the first occurrence of the specified |
|
number |
number |
None |
Return the rounded whole number of a number. |
|
string |
string |
None |
Replace each occurrence of whitespace, colon (:), underscore (_), plus (+), and equals (=) with a hyphen (-). |
|
string |
string |
None |
Replace each occurrence of whitespace, colon (:), hyphen (-), plus (+), and equals (=) with an underscore (_). |
|
string |
Boolean |
|
Return true if a string starts with the specified string (including case). |
|
string |
string |
|
Retrieve a segment of a string from the specified inclusive |
|
string |
string |
|
Retrieve the segment of a string after the specified |
|
string |
string |
|
Retrieve a segment of a string before the supplied |
|
string |
string |
None |
Trim leading and trailing whitespace from a string. |
|
string |
string |
None |
Trim leading whitespace from a string. |
|
string |
string |
None |
Trim trailing whitespace from a string. |
|
string |
string |
None |
Convert a string to uppercase. |