+ public static NormalizedNode<?, ?> newCarMapNode() {
+ return ImmutableNodes.mapNodeBuilder(CAR_QNAME).build();
+ }
+
+ public static MapEntryNode newCarEntry(String name, BigInteger price) {
+ return ImmutableNodes.mapEntryBuilder(CAR_QNAME, CAR_NAME_QNAME, name)
+ .withChild(ImmutableNodes.leafNode(CAR_NAME_QNAME, name))
+ .withChild(ImmutableNodes.leafNode(CAR_PRICE_QNAME, price)).build();
+ }
+
+ public static YangInstanceIdentifier newCarPath(String name) {
+ return YangInstanceIdentifier.builder(CAR_LIST_PATH).nodeWithKey(CAR_QNAME, CAR_NAME_QNAME, name).build();
+ }