Skip to content

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 : TBaseNode

View source

Type Parameters ​

NameDescription
TContextThe type of the processing context.
TBaseNodeThe base type of nodes in the tree.
TNodeThe type of nodes to validate.

Constructors ​

NameDescription
NodeValidator()

Methods ​

NameDescription
Process(TContext, TNode)Performs processing on the specified node. Does not process any descendants.
Validate(TContext, TNode)Validates the specified node.