5d000e5627a900206e4db08e3e12b0795fcebbe6
[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 public interface NotificationStatementContainer {
19     /**
20      * Return collection of {@link NotificationStatement}. For RFC6020, this method returns an empty collection for
21      * statements which do not allow for must statement children.
22      *
23      * @return collection of notification statements
24      */
25     @Nonnull Collection<? extends NotificationStatement> getNotifications();
26 }