2 * Copyright (c) 2023 PANTHEON.tech, 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.dom.codec.impl;
10 import org.opendaylight.mdsal.binding.dom.codec.api.CommonDataObjectCodecTreeNode;
11 import org.opendaylight.mdsal.binding.runtime.api.CompositeRuntimeType;
12 import org.opendaylight.yangtools.binding.lib.DataObject;
13 import org.opendaylight.yangtools.binding.lib.DataObjectStep;
14 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument;
17 * Base implementation of {@link CommonDataObjectCodecTreeNode}.
19 abstract sealed class CommonDataObjectCodecContext<D extends DataObject, T extends CompositeRuntimeType>
20 extends DataContainerCodecContext<D, T, CommonDataObjectCodecPrototype<T>>
21 implements CommonDataObjectCodecTreeNode<D>
22 permits AbstractDataObjectCodecContext {
23 CommonDataObjectCodecContext(final CommonDataObjectCodecPrototype<T> prototype) {
28 * Returns deserialized Binding Path Argument from YANG instance identifier.
30 protected DataObjectStep<?> getBindingPathArgument(final PathArgument domArg) {
34 protected final DataObjectStep<?> bindingArg() {
35 return prototype().getBindingArg();