Class SingleNodeTypeValidator<N extends Node>

    • Field Detail

      • type

        private final java.lang.Class<N extends Node> type
    • Constructor Detail

      • SingleNodeTypeValidator

        public SingleNodeTypeValidator​(java.lang.Class<N> type,
                                       TypedValidator<N> validator)
    • Method Detail

      • accept

        public void accept​(Node node,
                           ProblemReporter problemReporter)
        Specified by:
        accept in interface java.util.function.BiConsumer<Node,​ProblemReporter>
        Specified by:
        accept in interface TypedValidator<N extends Node>
        Specified by:
        accept in interface Validator
        Parameters:
        node - the node that wants to be validated
        problemReporter - when found, validation errors can be reported here