2 * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.yangtools.yang.model.api.stmt;
10 import com.google.common.collect.ImmutableList;
11 import java.util.Collection;
12 import javax.annotation.Nonnull;
14 @Rfc6020AbnfRule("*(if-feature-stmt)")
15 public interface ConditionalFeature {
18 * All implementations should override this method.
19 * The default definition of this method is used only in YANG 1.0 (RFC6020) implementations of
20 * BitStatement, EnumStatement, IdentityStatement and RefineStatement which do not allow if-feature statements.
21 * These YANG statements have been changed in YANG 1.1 (RFC7950) and can now contain if-feature statements.
23 * @return collection of if-feature statements
25 // FIXME: version 2.0.0: make this method non-default
26 @Nonnull default Collection<? extends IfFeatureStatement> getIfFeatures() {
27 return ImmutableList.of();