Interface RootEffectiveStatement<D extends RootDeclaredStatement>

All Superinterfaces:
EffectiveStatement<UnresolvedQName.Unqualified,D>, ModelStatement<UnresolvedQName.Unqualified>
All Known Subinterfaces:
ModuleEffectiveStatement, SubmoduleEffectiveStatement

@Beta public sealed interface RootEffectiveStatement<D extends RootDeclaredStatement> extends EffectiveStatement<UnresolvedQName.Unqualified,D> permits ModuleEffectiveStatement, SubmoduleEffectiveStatement
Common interface capturing general layout of a top-level YANG declared statement -- either a ModuleEffectiveStatement or a SubmoduleEffectiveStatement.

Both these statements have a relationship to lexical and semantic interpretation of a particular YANG (or YIN) file. The core principle is that every XML prefix is bound to a particular ModuleEffectiveStatement, exposed via findReachableModule(String) and reachableModules(). The secondary effect of it is that each known QNameModule is known under a (preferred) prefix, exposed via findNamespacePrefix(QNameModule).