AUTO-GENERATED FILE — DO NOT EDIT MANUALLY
Source: components/validation/validation_result_component.gd
Version: 6.0
class_name: ValidationResultComponent
extends: Component
Signals
(none)
Exports
is_successful: bool = false- Array of validation issues/warnings.
- Array of validation warnings (non-blocking issues).
- Timestamp when validation was performed.
- Reference to the entity that performed the validation.
- Map of rule ID to its individual result data
- Static factory for success results.
- [param p_warnings]: Array of warning strings
- [param p_confidence]: Confidence score between 0.0 and 1.0
- [return]: ValidationResultComponent instance
issues: Array- Timestamp when validation was performed.
- Reference to the entity that performed the validation.
- Map of rule ID to its individual result data
- Static factory for success results.
- [param p_warnings]: Array of warning strings
- [param p_confidence]: Confidence score between 0.0 and 1.0
- [return]: ValidationResultComponent instance
warnings: Array- Timestamp when validation was performed.
- Reference to the entity that performed the validation.
- Map of rule ID to its individual result data
- Static factory for success results.
- [param p_confidence]: Confidence score between 0.0 and 1.0
- [return]: ValidationResultComponent instance
- Legacy static factory for success results (test compatibility).
- [return]: ValidationResultComponent instance
- Static factory for failure results.
- [param p_issues]: Array of issue strings
- [param p_confidence]: Confidence score between 0.0 and 1.0
- [return]: ValidationResultComponent instance
- Legacy static factory for failure results (test compatibility).
- [param p_issues]: Array of issue strings
- [return]: ValidationResultComponent instance
- Static factory from RuleResult.
- [param result]: RuleResult object or Dictionary
- [return]: ValidationResultComponent instance
validation_timestamp: float = 0.0- Reference to the entity that performed the validation.
- Map of rule ID to its individual result data
- Static factory for success results.
- [param p_warnings]: Array of warning strings
- [param p_confidence]: Confidence score between 0.0 and 1.0
- [return]: ValidationResultComponent instance
validated_by_entity_id: String = ""- Map of rule ID to its individual result data
- Static factory for success results.
- [param p_warnings]: Array of warning strings
- [param p_confidence]: Confidence score between 0.0 and 1.0
- [return]: ValidationResultComponent instance
Methods
success(p_warnings: Array) -> ValidationResultComponentcreate_success(p_warnings: Array) -> ValidationResultComponentfailure(p_issues: Array, p_warnings: Array) -> ValidationResultComponentcreate_failure(p_issues: Array, p_warnings: Array) -> ValidationResultComponentfrom_rule_result(result: Variant) -> ValidationResultComponentfrom_dict(data: Dictionary) -> ValidationResultComponent- Extract data with explicit key checking and type safety
_init(p_successful: bool = false, p_issues: Array, p_warnings: Array)add_issue(issue: String) -> voidadd_issues(new_issues: Array) -> voidis_success -> boolmerge_with(other: ValidationResultComponent) -> voidset_rule_result(rule_id: String, result: Dictionary) -> voidget_rule_result(rule_id: String) -> Variantdid_rule_pass(rule_id: String) -> boolget_rule_issues(rule_id: String) -> Arrayhas_issues -> boolto_dict -> Dictionary