Validator<TContext, TBaseNode> Class ​
Definition ​
A Processor<TContext, TBaseNode> for validating nodes in a tree. Any Messages returned by validation are added to the node.
c#
public abstract class Validator<TContext, TBaseNode> : Processor<TContext, TBaseNode>
where TBaseNode : Node<TBaseNode>Type Parameters ​
| Name | Description |
|---|---|
TContext | The type of the processing context. |
TBaseNode | The base type of nodes in the tree. |
Constructors ​
| Name | Description |
|---|---|
Validator() |
Methods ​
| Name | Description |
|---|---|
Process(TContext, TBaseNode) | Performs processing on the specified node. Does not process any descendants. |
Validate(TContext, TBaseNode) | Validates the specified node. |