ValidationResults
A collection of validation results.
Initializers
import { ValidationResults } from '@alicloud/ros-cdk-core'
new ValidationResults(results?: ValidationResult[])
Name | Type | Description |
---|---|---|
results |
ValidationResult[] |
No description. |
results
Optional
- Type: ValidationResult[]
Methods
Name | Description |
---|---|
collect |
No description. |
errorTreeList |
No description. |
wrap |
Wrap up all validation results into a single tree node. |
collect
public collect(result: ValidationResult): void
- Type: ValidationResult
errorTreeList
public errorTreeList(): string
wrap
public wrap(message: string): ValidationResult
Wrap up all validation results into a single tree node.
If there are failures in the collection, add a message, otherwise return a success.
- Type: string
Properties
Name | Type | Description |
---|---|---|
isSuccess |
boolean |
No description. |
results |
ValidationResult[] |
No description. |
isSuccess
Required
public readonly isSuccess: boolean;
- Type: boolean
results
Required
public readonly results: ValidationResult[];
- Type: ValidationResult[]