@Override public EffectiveStatement<String, YangDataStatement> createEffective(final StmtContext<String, YangDataStatement, EffectiveStatement<String, YangDataStatement>> ctx) { // in case of yang-data node we need to perform substatement validation at the point when we have // effective substatement contexts already available - if the node has only a uses statement declared in it, // one top-level container node may very well be added to the yang-data as an effective statement validator.validate(ctx); return new YangDataEffectiveStatementImpl(ctx); }
@Override public EffectiveStatement<String, YangDataStatement> createEffective(final StmtContext<String, YangDataStatement, EffectiveStatement<String, YangDataStatement>> ctx) { // in case of yang-data node we need to perform substatement validation at the point when we have // effective substatement contexts already available - if the node has only a uses statement declared in it, // one top-level container node may very well be added to the yang-data as an effective statement validator.validate(ctx); return new YangDataEffectiveStatementImpl(ctx); }
/** * {@inheritDoc}. * * <p> * Subclasses of this class may override this method to perform actions on this event or register a modification * action using {@link StmtContext.Mutable#newInferenceAction(ModelProcessingPhase)}. */ @Override public void onFullDefinitionDeclared(final StmtContext.Mutable<A, D, E> stmt) { final SubstatementValidator validator = getSubstatementValidator(); if (validator != null) { validator.validate(stmt); } }
EffectiveStatement<DeviateKind, DeviateStatement>> deviateStmtCtx) { final DeviateKind deviateKind = deviateStmtCtx.getStatementArgument(); getSubstatementValidatorForDeviate(deviateKind).validate(deviateStmtCtx);