82b32d60e754ee1d7401a64eb0bd4e9136ea890a
[mdsal.git] / binding / yang-binding / src / main / java / org / opendaylight / yangtools / yang / binding / DataContainer.java
1 /*
2  * Copyright (c) 2013 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 package org.opendaylight.yangtools.yang.binding;
9
10 import org.eclipse.jdt.annotation.NonNull;
11
12 /**
13  * Data Container - object contains structured data. Marker interface which must be implemented by all interfaces
14  * generated for YANG:
15  * <ul>
16  * <li>Rpc Input
17  * <li>Output
18  * <li>Notification
19  * <li>Container
20  * <li>List
21  * <li>Case
22  * </ul>
23  */
24 public interface DataContainer {
25     /**
26      * Return the interface implemented by this object. This method differs from {@link Object#getClass()} in that it
27      * returns the interface contract, not a concrete implementation class.
28      *
29      * @return Implemented contract
30      */
31     @NonNull Class<? extends DataContainer> implementedInterface();
32 }