Loosen BindingDataContainerCodecTreeNode.getBindingClass()
[mdsal.git] / binding / mdsal-binding-dom-codec-api / src / main / java / org / opendaylight / mdsal / binding / dom / codec / api / BindingOpaqueObjectCodecTreeNode.java
1 /*
2  * Copyright (c) 2019 PANTHEON.tech, s.r.o. 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.mdsal.binding.dom.codec.api;
9
10 import com.google.common.annotations.Beta;
11 import org.opendaylight.yangtools.yang.binding.BindingContract;
12 import org.opendaylight.yangtools.yang.binding.OpaqueObject;
13
14 @Beta
15 public non-sealed interface BindingOpaqueObjectCodecTreeNode<T extends OpaqueObject<T>>
16         extends BindingObjectCodecTreeNode, BindingNormalizedNodeCodec<T> {
17     /**
18      * Returns binding class of interface which represents API of current schema node. The result is same as invoking
19      * {@link BindingContract#implementedInterface()} on instance of data.
20      *
21      * @return interface which defines API of binding representation of data.
22      */
23     @Override
24     Class<T> getBindingClass();
25 }