2 * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
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
8 package org.opendaylight.mdsal.binding.dom.codec.api;
10 import javax.annotation.Nullable;
11 import org.opendaylight.yangtools.yang.binding.DataObject;
12 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
13 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
14 import org.opendaylight.yangtools.yang.model.api.SchemaPath;
17 * Navigable tree representing hierarchy of Binding to Normalized Node codecs
19 * This navigable tree is associated to conrete set of YANG models, represented by SchemaContext and
20 * provides access to subtree specific serialization context.
22 * TODO: Add more detailed documentation
24 public interface BindingCodecTree {
27 <T extends DataObject> BindingCodecTreeNode<T> getSubtreeCodec(InstanceIdentifier<T> path);
30 BindingCodecTreeNode<?> getSubtreeCodec(YangInstanceIdentifier path);
33 BindingCodecTreeNode<?> getSubtreeCodec(SchemaPath path);