2 * Copyright (c) 2019 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.yangtools.yang.data.impl.schema.tree;
10 import java.util.Optional;
11 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument;
12 import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
13 import org.opendaylight.yangtools.yang.data.api.schema.tree.spi.Version;
15 abstract class DelegatingModificationApplyOperation extends ModificationApplyOperation {
17 final ChildTrackingPolicy getChildPolicy() {
18 return delegate().getChildPolicy();
22 final void mergeIntoModifiedNode(final ModifiedNode node, final NormalizedNode<?, ?> value, final Version version) {
23 delegate().mergeIntoModifiedNode(node, value, version);
27 public final Optional<ModificationApplyOperation> getChild(final PathArgument child) {
28 return delegate().getChild(child);
32 final void quickVerifyStructure(final NormalizedNode<?, ?> modification) {
33 delegate().quickVerifyStructure(modification);
37 final void recursivelyVerifyStructure(final NormalizedNode<?, ?> value) {
38 delegate().recursivelyVerifyStructure(value);
42 * Return the underlying delegate.
44 * @return Underlying delegate.
46 abstract ModificationApplyOperation delegate();