Result
Adapter for mapping validation invokables to their results
Constructor Summary
| Public Constructor | ||
| public |
constructor(invokables: Invokable[], results: Result[]) |
|
Member Summary
| Private Members | ||
| private |
_invokables: * |
|
| private |
_results: * |
|
| private |
_subject: * |
|
Method Summary
| Public Methods | ||
| public |
explain(logger: *, indent: *) |
|
| public |
forAll(): Boolean A Results summary that will return |
|
| public |
forAny(): Boolean A Results summary that will return |
|
| public |
forOne(name: String): Array Filters results by name |
|
Public Constructors
Public Methods
public explain(logger: *, indent: *) source
Params:
| Name | Type | Attribute | Description |
| logger | * | ||
| indent | * |
public forAll(): Boolean source
A Results summary that will return true if all validations passed
Return:
| Boolean |
|
public forAny(): Boolean source
A Results summary that will return true if any validations passed
Return:
| Boolean |
|
public forOne(name: String): Array source
Filters results by name
Params:
| Name | Type | Attribute | Description |
| name | String | The name for a specific Invokable. This value
is set by |
Return:
| Array | An array of Booleans derived from specified Invokables |