| 604 | * Implement this interface in order for the construct to be able to validate itself. |
| 605 | */ |
| 606 | export interface IValidation { |
| 607 | /** |
| 608 | * Validate the current construct. |
| 609 | * |
| 610 | * This method can be implemented by derived constructs in order to perform |
| 611 | * validation logic. It is called on all constructs before synthesis. |
| 612 | * |
| 613 | * @returns An array of validation error messages, or an empty array if there the construct is valid. |
| 614 | */ |
| 615 | validate(): string[]; |
| 616 | } |
| 617 | |
| 618 | /** |
| 619 | * In what order to return constructs |