DeclaredStatements can contain default implementations
[yangtools.git] / yang / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / api / stmt / NotificationStatementContainer.java
1 /*
2  * Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.yangtools.yang.model.api.stmt;
10
11 import java.util.Collection;
12 import javax.annotation.Nonnull;
13
14 /**
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.
17  *
18  * @deprecated Use {@link NotificationStatementAwareDeclaredStatement} instead.
19  */
20 @Deprecated
21 public interface NotificationStatementContainer {
22     /**
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.
25      *
26      * @return collection of notification statements
27      */
28     @Nonnull Collection<? extends NotificationStatement> getNotifications();
29 }