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.yangtools.yang.data.tree.spi;
10 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument;
11 import org.opendaylight.yangtools.yang.data.api.schema.DistinctNodeContainer;
12 import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
13 import org.opendaylight.yangtools.yang.data.tree.api.DataTreeCandidateNode;
14 import org.opendaylight.yangtools.yang.data.tree.api.ModificationType;
16 final class RecursiveUnmodifiedCandidateNode extends AbstractRecursiveCandidateNode {
17 RecursiveUnmodifiedCandidateNode(final DistinctNodeContainer<PathArgument, NormalizedNode> data) {
22 public ModificationType modificationType() {
23 return ModificationType.UNMODIFIED;
27 public NormalizedNode dataBefore() {
32 public NormalizedNode dataAfter() {
37 DataTreeCandidateNode createContainer(final DistinctNodeContainer<PathArgument, NormalizedNode> childData) {
38 return new RecursiveUnmodifiedCandidateNode(childData);
42 DataTreeCandidateNode createLeaf(final NormalizedNode childData) {
43 return new UnmodifiedLeafCandidateNode(childData);