.build();
public AnnotationStatementSupport(final YangParserConfiguration config) {
- super(MetadataStatements.ANNOTATION, StatementPolicy.reject(), config);
+ super(MetadataStatements.ANNOTATION, StatementPolicy.reject(), config, VALIDATOR);
}
@Override
stmt, "Annotations may only be defined at root of either a module or a submodule");
}
- @Override
- protected SubstatementValidator getSubstatementValidator() {
- return VALIDATOR;
- }
-
@Override
protected AnnotationStatement createDeclared(final StmtContext<QName, AnnotationStatement, ?> ctx,
final ImmutableList<? extends DeclaredStatement<?>> substatements) {