Text Transformations
Overview
Text Transformations is a lightweight and reusable Mendix module that provides essential Java actions for string formatting and manipulation. Perfect for developers who need to clean, format, or standardize text within microflows.
✨ Features:
-
Convert text to camelCase
-
Capitalize the first letter of a string
-
Capitalize the first letter of each word
-
Transform text to lowercase or uppercase
-
Simple input/output: all actions take and return a String
Documentation
Documentation: Text Transformations Module
------------------------------------------
Overview
--------------
Text Transformations is a utility module containing Java actions for common string formatting operations. It allows developers to easily manipulate string inputs in microflows using actions like camel case conversion, capitalization, and case formatting.
Requirements
---------------------
- Mendix Version: 10.6.5 or higher
- External Libraries: None
- License: MIT License
- Category: Utilities → Text / String
Configuration
--------------------
No special configuration is required. Simply import the module and call the Java actions within your microflows or nanoflows.
Included Java Actions
--------------------------------
| Name | Description | Input Type | Output Type |
|---------------------|------------------------------------------------------------------|-------------------|--------------------|
| camelCase | Converts the string to camelCase format | String | String |
| capitalize | Capitalizes only the first letter | String | String |
| capitalizeWords | Capitalizes the first letter of each word | String | String |
| toLowerCase | Converts the string to all lowercase | String | String |
| toUpperCase | Converts the string to all uppercase | String | String |
Usage Instructions
-----------------------------
1. Import the module into your Mendix project.
2. Use any of the available Java actions in your microflow.
3. Pass a string as input and use the returned string as needed.
Example:
-------------
Input: "hello world"
Action: capitalizeWords
Output: "Hello World"
Testing
----------
Each action has been tested with edge cases such as:
- Empty strings- Mixed case input
- Strings with special characters or spaces
License
-----------
This module is distributed under the MIT License, allowing commercial and personal use with minimal restrictions.