2 * Copyright (c) 2016 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
9 package org.opendaylight.yangtools.yang.model.api.stmt;
11 import java.util.Collection;
12 import javax.annotation.Nonnull;
15 * Marker interface for statements which may contain a 'notification' statement, as defined in RFC7950. There is
16 * a significant difference RFC6020 (YANG 1) and RFC7590 (YANG 1.1) in which statements sport this feature.
18 * @deprecated Use {@link NotificationStatementAwareDeclaredStatement} instead.
21 public interface NotificationStatementContainer {
23 * Return collection of {@link NotificationStatement}. For RFC6020, this method returns an empty collection for
24 * statements which do not allow for must statement children.
26 * @return collection of notification statements
28 @Nonnull Collection<? extends NotificationStatement> getNotifications();