Interface EffectiveStatementMixins.WhenConditionMixin<A,D extends DeclaredStatement<A>>
-
- Type Parameters:
A
- Argument type (Void
if statement does not have argument.)D
- Class representing declared version of this statement.
- All Superinterfaces:
EffectiveStatement<A,D>
,ModelStatement<A>
,WhenConditionAware
- All Known Subinterfaces:
EffectiveStatementMixins.DataSchemaNodeMixin<A,D>
,EffectiveStatementMixins.OpaqueDataSchemaNodeMixin<D>
,EffectiveStatementMixins.OperationContainerMixin<D>
- All Known Implementing Classes:
AbstractLeafEffectiveStatement
,AugmentEffectiveStatementImpl
,ChoiceEffectiveStatementImpl
,ContainerEffectiveStatementImpl
,DeclaredCaseEffectiveStatement
,DeclaredInputEffectiveStatement
,DeclaredOutputEffectiveStatement
,EmptyAnydataEffectiveStatement
,EmptyAnyxmlEffectiveStatement
,EmptyLeafEffectiveStatement
,RegularAnydataEffectiveStatement
,RegularAnyxmlEffectiveStatement
,RegularLeafEffectiveStatement
,UndeclaredCaseEffectiveStatement
,UndeclaredInputEffectiveStatement
,UndeclaredOutputEffectiveStatement
- Enclosing class:
- EffectiveStatementMixins
public static interface EffectiveStatementMixins.WhenConditionMixin<A,D extends DeclaredStatement<A>> extends WhenConditionAware
Helper used to locate the effectivewhen
statement and exposing its argument as perWhenConditionAware
.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default Optional<YangXPathExpression.QualifiedBound>
getWhenCondition()
Returns when statement.-
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement
effectiveSubstatements, findFirstEffectiveSubstatement, findFirstEffectiveSubstatementArgument, get, getAll, getDeclared, streamEffectiveSubstatements
-
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.meta.ModelStatement
argument, statementDefinition, statementOrigin
-
-
-
-
Method Detail
-
getWhenCondition
default Optional<YangXPathExpression.QualifiedBound> getWhenCondition()
Description copied from interface:WhenConditionAware
Returns when statement.If when condition is present node defined by the parent data definition statement is only valid when the returned XPath expression conceptually evaluates to "true" for a particular instance, then the node defined by the parent data definition statement is valid; otherwise, it is not.
- Specified by:
getWhenCondition
in interfaceWhenConditionAware
- Returns:
- XPath condition
-
-