clsTranslationResult¶
clsTranslationResult is a serializable value class that represents the outcome of a code/data translation operation: the translated Result object, an Accuracies grade indicating how confident the translation is, and an optional descriptive Message. It is used wherever the policy domain needs to report not just a translated value but also how reliable that translation was, per BR-POL-018.
Purpose¶
- Carry the translated value (
Result), its confidence grade (Accuracy), and an explanatoryMessagetogether as a single unit. - Default
AccuracytoAccuracies.Failureuntil explicitly set, so an unpopulated result is not mistaken for a successful translation. - Support construction either as an empty result (default constructor) or fully populated via the parameterized constructor.
Context¶
- Namespace:
SAIF.Business.Policy - Assembly/package:
SAIF.Business.Policy
Public members¶
| Member | Signature | Purpose |
|---|---|---|
Result |
Public Property Result() As Object |
The translated value produced by the translation operation. |
Accuracy |
Public Property Accuracy() As Accuracies |
The confidence grade of the translation, per BR-POL-018; defaults to Accuracies.Failure. |
Message |
Public Property Message() As String |
An optional descriptive message associated with the translation result. |
ToString |
Public Overrides Function ToString() As String |
Returns Message as the string representation of the result. |
New() |
Public Sub New() |
Constructs an empty translation result with Accuracy defaulted to Failure. |
New(Result, Accuracy, Message) |
Public Sub New(ByVal inResult As Object, ByVal inAccuracy As Accuracies, Optional ByVal inMessage As String = "") |
Constructs a fully populated translation result. |
Behavioral notes¶
- Source declaration:
Business\SAIF.Business.Policy\clsTranslationResult.vb. - Related operations, rules, and SQL are cross-referenced from the library-level documentation.
Constraints and usage notes¶
- Consumers should rely on the declared public surface rather than internal implementation details.
Note: Statements marked with * were inferred from code structure, naming conventions, or contextual evidence where direct confirmation was not available in source artifacts. Statements marked with ** could not be confirmed; treat as unknown until verified.
Sources¶
Business\SAIF.Business.Policy\clsTranslationResult.vb