Pascal Case
Synopsis
Converts strings to PascalCase format.
Schema
- pascalcase:
field: <ident>
target_field: <string>
fields: <array>
exclude: <array>
description: <text>
if: <script>
ignore_failure: <boolean>
ignore_missing: <boolean>
on_failure: <processor[]>
on_success: <processor[]>
tag: <string>
Configuration
The following fields are used to define the processor:
Field | Required | Default | Description |
---|---|---|---|
field | N | - | Single field to convert to PascalCase |
target_field | N | Same as field | Target field to store PascalCase result |
fields | N | - | Array of fields to convert to PascalCase |
exclude | N | - | Array of fields to exclude from conversion |
description | N | - | Explanatory note |
if | N | - | Condition to run |
ignore_failure | N | false | Continue processing if conversion fails |
ignore_missing | N | false | Skip processing if referenced field doesn't exist |
on_failure | N | - | See Handling Failures |
on_success | N | - | See Handling Success |
tag | N | - | Identifier |
Details
Converts string values to PascalCase format by removing spaces, hyphens, underscores, and other separators, then capitalizing the first letter of each word including the first word. This format is commonly used in programming for class names, type names, and other identifiers.
PascalCase is similar to camelCase but capitalizes the very first letter as well, making it suitable for naming conventions in many programming languages.
PascalCase format capitalizes the first letter of every word including the first, resulting in format like "FirstName", "UserAccountName", or "DataProcessingComplete". This differs from camelCase where the first letter remains lowercase.
The processor handles various input formats and converts them to the standard PascalCase naming convention used in object-oriented programming.
If the field contains non-string values, the processor will attempt to convert them to strings before applying PascalCase conversion. Complex objects or arrays may produce unexpected results.
Examples
Basic Conversion
Converting snake_case to PascalCase... |
|
converts to PascalCase: |
|
Type Name Generation
Creating type names from descriptions... |
|
generates programming identifier: |
|
Mixed Format Input
Normalizing mixed separators to PascalCase... |
|
standardizes to PascalCase: |
|
Multiple Fields
Converting multiple fields to PascalCase... |
|
processes all specified fields: |
|
Namespace Generation
Creating namespace identifiers... |
|
generates namespace identifier: |
|