750972685175125442c86bfb3efe6528d74b72da
[mdsal.git] /
1 /*
2  * Copyright (c) 2018 Pantheon Technologies, 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.eclipse.jdt.annotation.NonNullByDefault;
12 import org.opendaylight.yangtools.concepts.Delegator;
13 import org.opendaylight.yangtools.yang.binding.DataObject;
14 import org.opendaylight.yangtools.yang.data.api.schema.ContainerNode;
15
16 /**
17  * A {@link ContainerNode} backed by a binding {@link DataObject}, with lazy instantiation of the ContainerNode view.
18  *
19  * @param <T> Binding DataObject type
20  * @author Robert Varga
21  */
22 @Beta
23 @NonNullByDefault
24 public interface BindingLazyContainerNode<T> extends ContainerNode, Delegator<ContainerNode> {
25     /**
26      * Returns the underlying DataObject.
27      *
28      * @return underlying DataObject.
29      */
30     T getDataObject();
31 }