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