public class SingleNodeTypeValidator<N extends Node> extends java.lang.Object implements Validator
| Modifier and Type | Field and Description |
|---|---|
private java.lang.Class<N> |
type |
private TypedValidator<N> |
validator |
| Constructor and Description |
|---|
SingleNodeTypeValidator(java.lang.Class<N> type,
TypedValidator<N> validator) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Node node,
ProblemReporter problemReporter) |
private final TypedValidator<N extends Node> validator
public SingleNodeTypeValidator(java.lang.Class<N> type, TypedValidator<N> validator)
public void accept(Node node, ProblemReporter problemReporter)
accept in interface TypedValidator<Node>accept in interface Validatoraccept in interface java.util.function.BiConsumer<Node,ProblemReporter>node - the node that wants to be validatedproblemReporter - when found, validation errors can be reported here