2 * Copyright (c) 2016 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.mdsal.dom.spi.shard;
10 import static java.util.Objects.requireNonNull;
13 import org.opendaylight.mdsal.dom.api.DOMDataTreeWriteCursor;
14 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument;
16 @Deprecated(forRemoval = true)
17 class WritableInteriorNode extends WriteableNodeWithSubshard {
19 private final PathArgument identifier;
21 WritableInteriorNode(final PathArgument identifier, final Map<PathArgument, WriteableModificationNode> children) {
23 this.identifier = requireNonNull(identifier);
27 public PathArgument getIdentifier() {
32 public WriteCursorStrategy createOperation(final DOMDataTreeWriteCursor parentCursor) {
33 return new WritableNodeOperation(this, parentCursor) {
36 // We are not root, so we can safely exit our level.