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;
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.
21 * This navigable tree is associated to concrete set of YANG models, represented
22 * by SchemaContext and provides access to subtree specific serialization
26 public interface BindingTreeCodec {
29 * Get specific subtree serialization context by Binding path.
32 * - {@link InstanceIdentifier} path
33 * @param <T> data type
34 * @return subtree codec
37 <T extends TreeNode> BindingTreeNodeCodec<T> getSubtreeCodec(InstanceIdentifier<T> path);
40 * Get specific subtree serialization context by DOM path.
43 * - {@link YangInstanceIdentifier} path
44 * @return subtree codec
47 BindingTreeNodeCodec<?> getSubtreeCodec(YangInstanceIdentifier path);
50 * Get specific subtree serialization context by {@link SchemaPath} path.
53 * - {@link SchemaPath} path
54 * @return specific subtree codec
57 BindingTreeNodeCodec<?> getSubtreeCodec(SchemaPath path);