PropertyMigrationRule

data class PropertyMigrationRule(val pattern: Pattern, val replacement: String, val description: String, val condition: (String) -> Boolean? = null)

Data class representing a property migration rule with pattern matching.

Used for runtime extensibility when explicit mappings are insufficient. Most migrations use explicit mappings in exactPropertyMappings for safety.

Usage Example (Runtime Extension)

PropertyMigrationRule(
pattern = Pattern.compile("custom\\.company\\.(.+)"),
replacement = "embabel.agent.custom.$1",
description = "Custom company namespace migration"
)

Constructors

Link copied to clipboard
constructor(pattern: Pattern, replacement: String, description: String, condition: (String) -> Boolean? = null)

Properties

Link copied to clipboard
val condition: (String) -> Boolean? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun tryApply(property: String): String?

Attempts to transform a deprecated property name into its recommended replacement.