public UniqueStatementSupport(final YangParserConfiguration config) {
// FIXME: This reflects what the current implementation does. We really want to define an adaptArgumentValue(),
// but how that plays with the argument and expectations needs to be investigated.
- super(YangStmtMapping.UNIQUE, StatementPolicy.contextIndependent(), config);
+ super(YangStmtMapping.UNIQUE, StatementPolicy.contextIndependent(), config, SUBSTATEMENT_VALIDATOR);
}
@Override
return uniqueConstraints;
}
- @Override
- protected SubstatementValidator getSubstatementValidator() {
- return SUBSTATEMENT_VALIDATOR;
- }
-
@Override
protected UniqueStatement createDeclared(final StmtContext<Set<Descendant>, UniqueStatement, ?> ctx,
final ImmutableList<? extends DeclaredStatement<?>> substatements) {