Package com.cloudforge.core.annotation
Annotation Interface FieldEquals
Field equality check for visibility conditions.
Checks if a DeploymentConfig field has a specific value.
Usage Examples
// Simple boolean check
@FieldEquals(field = "provisionDatabase", value = "true")
// Enum check
@FieldEquals(field = "securityProfile", value = "PRODUCTION")
// String check
@FieldEquals(field = "oidcProvider", value = "cognito")
- Since:
- 3.0.0
- See Also:
-
Required Element Summary
Required Elements
-
Element Details
-
field
String fieldDeploymentConfig field name to check.Must match an actual field name in DeploymentConfig class.
- Returns:
- field name
-
value
String valueExpected value as string (converted to field type at runtime).Type conversion:
- boolean: "true" or "false"
- int/Integer: numeric string
- String: direct comparison
- Enum: enum constant name
- Returns:
- expected value as string
-