public class TemplateValidationContext
extends java.lang.Object
TemplateField.validate(TemplateValidationContext)
so payload validation can access change-level metadata.
Binary-compatibility contract: new fields are added as getter/setter pairs with sensible defaults. Older template payloads that ignore the new fields continue to work unchanged.
Current fields:
transactional (default false) — whether the
enclosing change is declared transactional.| Constructor and Description |
|---|
TemplateValidationContext()
Creates a context with all fields set to their defaults.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isTransactional()
Returns whether the enclosing change is declared transactional.
|
void |
setTransactional(boolean transactional)
Sets whether the enclosing change is declared transactional.
|
public TemplateValidationContext()
public boolean isTransactional()
true if the change is transactional, false otherwisepublic void setTransactional(boolean transactional)
transactional - true if the change is transactional