public static interface ModelActionBuilder.InferenceAction
| Modifier and Type | Method and Description |
|---|---|
void |
apply(ModelActionBuilder.InferenceContext ctx)
Invoked once all prerequisites were met and forward references were resolved and inference action should be
applied.
|
void |
prerequisiteFailed(Collection<? extends ModelActionBuilder.Prerequisite<?>> failed)
Invoked once one of prerequisites was not met, even after all other satisfiable inference actions were
processed.
|
void apply(ModelActionBuilder.InferenceContext ctx)
InferenceException - If inference action can not be processed. Note that this exception be used for
user to debug YANG sources, so should provide helpful context to fix issue in sources.void prerequisiteFailed(Collection<? extends ModelActionBuilder.Prerequisite<?>> failed)
Implementors MUST throw InferenceException if semantic processing of model should be stopped
and failed.
List of failed prerequisites should be used to select right message / error type to debug problem in YANG sources.
failed - collection of prerequisites which were not metInferenceException - If inference action can not be processed. Note that this exception be used
by user to debug YANG sources, hence it should provide helpful context to fix
the issue in sources.Copyright © 2019 OpenDaylight. All rights reserved.