Interface IfFeatureStatement

All Superinterfaces:
DeclaredStatement<IfFeatureExpr>, ModelStatement<IfFeatureExpr>
All Known Implementing Classes:
EmptyIfFeatureStatement, RefIfFeatureStatement, RegularIfFeatureStatement

public interface IfFeatureStatement extends DeclaredStatement<IfFeatureExpr>
Represents YANG if-feature statement. The "if-feature" statement makes its parent statement conditional.
  • Method Details

    • statementDefinition

      default StatementDefinition statementDefinition()
      Description copied from interface: ModelStatement
      Statement Definition of this statement.
      Specified by:
      statementDefinition in interface ModelStatement<IfFeatureExpr>
      Returns:
      definition of this statement.
    • getIfFeaturePredicate

      @Beta default @NonNull IfFeatureExpr getIfFeaturePredicate()
      In YANG 1.1 (RFC7950) implementation of IfFeatureStatement, the argument is a boolean expression over feature names defined by "feature" statements. Hence, add implementation to return a predicate on a collection of features against which to evaluate.
      Returns:
      Predicate on a collection of QNames against which to evaluate