Interface EffectiveStatementMixins.WhenConditionMixin<A,D extends DeclaredStatement<A>>

Type Parameters:
A - Argument type (Empty 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<D>, EffectiveStatementMixins.OpaqueDataSchemaNodeMixin<D>, EffectiveStatementMixins.OperationContainerMixin<D>
All Known Implementing Classes:
AbstractChoiceEffectiveStatement, AbstractContainerEffectiveStatement, AbstractLeafEffectiveStatement, AugmentEffectiveStatementImpl, DeclaredCaseEffectiveStatement, DeclaredInputEffectiveStatement, DeclaredOutputEffectiveStatement, EmptyAnydataEffectiveStatement, EmptyAnyxmlEffectiveStatement, EmptyChoiceEffectiveStatement, EmptyContainerEffectiveStatement, EmptyLeafEffectiveStatement, EmptyLeafListEffectiveStatement, EmptyListEffectiveStatement, RegularAnydataEffectiveStatement, RegularAnyxmlEffectiveStatement, RegularChoiceEffectiveStatement, RegularContainerEffectiveStatement, RegularLeafEffectiveStatement, RegularLeafListEffectiveStatement, RegularListEffectiveStatement, SlimLeafListEffectiveStatement, UndeclaredCaseEffectiveStatement, UndeclaredInputEffectiveStatement, UndeclaredLeafEffectiveStatement, UndeclaredOutputEffectiveStatement
Enclosing class:
EffectiveStatementMixins

public static interface EffectiveStatementMixins.WhenConditionMixin<A,D extends DeclaredStatement<A>> extends WhenConditionAware
Helper used to locate the effective when statement and exposing its argument as per WhenConditionAware.
  • Method Details

    • 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 interface WhenConditionAware
      Returns:
      XPath condition
    • filterEffectiveStatements

      default <T> @NonNull Collection<? extends @NonNull T> filterEffectiveStatements(Class<T> type)