Interface ConfigEffectiveStatement
- All Superinterfaces:
EffectiveStatement<Boolean,
,ConfigStatement> ModelStatement<Boolean>
- All Known Implementing Classes:
EmptyConfigEffectiveStatement
,RegularConfigEffectiveStatement
Effective representation of a
config
statement.
Note that unlike almost all other representations, these statements are only ever a reflection of a declared
config
statement. The truly effective status of a particular statement within a tree depends on its parent
statements. As an example, given this YANG module:
module foo {
grouping foo {
leaf baz {
type string;
}
}
container bar {
config false;
uses foo;
}
uses bar;
}
The object model will only reflect the config
statement in container bar
, but will not be present in
bar
's baz
leaf. The real effective config
of leaf baz
is a tri-state value:
- within
grouping foo
it is not applicable, that is to say undefined - within
container bar
it is inherited, that is to sayfalse
- within
module foo
it is inherited from default, that is to saytrue
Users are advised to use utility classes related to statement inference which consider parent/child relationships of statements.
-
Method Summary
Modifier and TypeMethodDescriptiondefault StatementDefinition
Statement Definition of this statement.Methods inherited from interface org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement
collectEffectiveSubstatements, effectiveSubstatements, findFirstEffectiveSubstatement, findFirstEffectiveSubstatementArgument, getDeclared, statementOrigin, streamEffectiveSubstatements
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.meta.ModelStatement
argument
-
Method Details
-
statementDefinition
Description copied from interface:ModelStatement
Statement Definition of this statement.- Specified by:
statementDefinition
in interfaceModelStatement<Boolean>
- Returns:
- definition of this statement.
-