Interface ImplicitParentAwareStatementSupport


@Beta public interface ImplicitParentAwareStatementSupport
StatementSupport trait for statements which create intermediate parent node for some of its child nodes. An example of this is RFC6020/RFC7950 choice statement, which creates implicit case statements for child containers and others.
  • Method Summary

    Modifier and Type
    Method
    Description
    getImplicitParentFor(NamespaceStmtCtx parent, org.opendaylight.yangtools.yang.model.api.meta.StatementDefinition stmtDef)
    Returns implicit parent statement support for supplied statement definition, if it is defined.
  • Method Details

    • getImplicitParentFor

      Optional<StatementSupport<?,?,?>> getImplicitParentFor(NamespaceStmtCtx parent, org.opendaylight.yangtools.yang.model.api.meta.StatementDefinition stmtDef)
      Returns implicit parent statement support for supplied statement definition, if it is defined. This allows implementations of this interface add implicit parent to the build context hierarchy before a substatement is created.
      Parameters:
      parent - parent statement context
      stmtDef - statement definition of substatement
      Returns:
      optional of implicit parent statement support