2 * Copyright (c) 2017 Pantheon Technologies s.r.o. 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.javav2.dom.codec.api.codecs;
10 import com.google.common.annotations.Beta;
11 import javax.annotation.Nullable;
12 import org.opendaylight.mdsal.binding.javav2.spec.base.InstanceIdentifier;
13 import org.opendaylight.mdsal.binding.javav2.spec.base.TreeNode;
14 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
15 import org.opendaylight.yangtools.yang.model.api.SchemaPath;
18 * Navigable tree representing hierarchy of Binding to Normalized Node codecs.
20 * This navigable tree is associated to concrete set of YANG models, represented
21 * by SchemaContext and provides access to subtree specific serialization
25 public interface BindingTreeCodec {
28 * Get specific subtree serialization context by Binding path.
31 * - {@link InstanceIdentifier} path
32 * @return subtree codec
35 <T extends TreeNode> BindingTreeNodeCodec<T> getSubtreeCodec(InstanceIdentifier<T> path);
38 * Get specific subtree serialization context by DOM path.
41 * - {@link YangInstanceIdentifier} path
42 * @return subtree codec
45 BindingTreeNodeCodec<?> getSubtreeCodec(YangInstanceIdentifier path);
48 * Get specific subtree serialization context by {@link SchemaPath} path.
51 * - {@link SchemaPath} path
52 * @return specific subtree codec
55 BindingTreeNodeCodec<?> getSubtreeCodec(SchemaPath path);