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.netconf.sal.connect.netconf.sal.tx;
11 import org.opendaylight.yangtools.yang.common.QName;
12 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
13 import org.opendaylight.yangtools.yang.data.api.schema.ContainerNode;
14 import org.opendaylight.yangtools.yang.data.api.schema.LeafNode;
15 import org.opendaylight.yangtools.yang.data.impl.schema.Builders;
19 private static final QName Q_NAME_1 = QName.create("test:namespace", "2013-07-22", "c");
20 private static final QName Q_NAME_2 = QName.create(Q_NAME_1, "a");
22 static YangInstanceIdentifier getContainerId() {
23 return YangInstanceIdentifier.builder()
28 static YangInstanceIdentifier getLeafId() {
29 return YangInstanceIdentifier.builder()
35 static ContainerNode getContainerNode() {
36 return Builders.containerBuilder()
37 .withNodeIdentifier(new YangInstanceIdentifier.NodeIdentifier(Q_NAME_1))
41 static LeafNode<String> getLeafNode() {
42 return Builders.<String>leafBuilder()
43 .withNodeIdentifier(new YangInstanceIdentifier.NodeIdentifier(Q_NAME_2))