package org.opendaylight.controller.md.cluster.datastore.model;
import org.opendaylight.yangtools.yang.common.QName;
package org.opendaylight.controller.md.cluster.datastore.model;
import org.opendaylight.yangtools.yang.common.QName;
import org.opendaylight.yangtools.yang.data.api.schema.MapEntryNode;
import org.opendaylight.yangtools.yang.data.api.schema.MapNode;
import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
import org.opendaylight.yangtools.yang.data.api.schema.MapEntryNode;
import org.opendaylight.yangtools.yang.data.api.schema.MapNode;
import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
public static final QName BASE_QNAME = QName.create("urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom:store:test:cars", "2014-03-13",
"cars");
public static final QName BASE_QNAME = QName.create("urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom:store:test:cars", "2014-03-13",
"cars");
public static final QName CARS_QNAME = QName.create(BASE_QNAME, "cars");
public static final QName CAR_QNAME = QName.create(CARS_QNAME, "car");
public static final QName CARS_QNAME = QName.create(BASE_QNAME, "cars");
public static final QName CAR_QNAME = QName.create(CARS_QNAME, "car");
// Create a list builder
CollectionNodeBuilder<MapEntryNode, MapNode> cars =
ImmutableMapNodeBuilder.create().withNodeIdentifier(
// Create a list builder
CollectionNodeBuilder<MapEntryNode, MapNode> cars =
ImmutableMapNodeBuilder.create().withNodeIdentifier(
.withChild(ImmutableNodes.leafNode(CAR_NAME_QNAME, "altima"))
.withChild(ImmutableNodes.leafNode(CAR_PRICE_QNAME, 1000))
.build();
// Create an entry for the car accord
MapEntryNode honda =
.withChild(ImmutableNodes.leafNode(CAR_NAME_QNAME, "altima"))
.withChild(ImmutableNodes.leafNode(CAR_PRICE_QNAME, 1000))
.build();
// Create an entry for the car accord
MapEntryNode honda =
.withChild(ImmutableNodes.leafNode(CAR_NAME_QNAME, "accord"))
.withChild(ImmutableNodes.leafNode(CAR_PRICE_QNAME, 2000))
.build();
.withChild(ImmutableNodes.leafNode(CAR_NAME_QNAME, "accord"))
.withChild(ImmutableNodes.leafNode(CAR_PRICE_QNAME, 2000))
.build();