Skip to content

NodeValidator<TBaseNode, TNode> Class ​

Definition ​

A NodeProcessor<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<TBaseNode, TNode> : NodeProcessor<TBaseNode, TNode>
   where TBaseNode : Node<TBaseNode>
   where TNode : TBaseNode

View source

Type Parameters ​

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

Constructors ​

NameDescription
NodeValidator()

Methods ​

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