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
9 package org.opendaylight.mdsal.dom.store.inmemory;
11 import com.google.common.base.Preconditions;
13 import org.opendaylight.mdsal.dom.api.DOMDataTreeWriteCursor;
14 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument;
16 class WritableInteriorNode extends WriteableNodeWithSubshard {
18 private final PathArgument identifier;
20 WritableInteriorNode(PathArgument identifier, Map<PathArgument, WriteableModificationNode> children) {
22 this.identifier = Preconditions.checkNotNull(identifier);
26 public PathArgument getIdentifier() {
31 WriteCursorStrategy createOperation(DOMDataTreeWriteCursor parentCursor) {
32 return new WriteableNodeOperation(this, parentCursor) {
35 // We are not root, so we can safely exit our level.