Search in sources :

Example 1 with UnorderedListKey

use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.md.sal.test.store.rev140422.lists.unordered.container.UnorderedListKey in project controller by opendaylight.

the class RoutedServiceIT method createNodeRef.

/**
 * Returns node reference from string which represents path
 *
 * @param string
 *            string with key(path)
 * @return instance identifier to {@link UnorderedList}
 */
private static InstanceIdentifier<UnorderedList> createNodeRef(final String string) {
    final UnorderedListKey key = new UnorderedListKey(string);
    final InstanceIdentifier<UnorderedList> path = InstanceIdentifier.builder(Lists.class).child(UnorderedContainer.class).child(UnorderedList.class, key).build();
    return path;
}
Also used : Lists(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.md.sal.test.store.rev140422.Lists) UnorderedList(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.md.sal.test.store.rev140422.lists.unordered.container.UnorderedList) UnorderedListKey(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.md.sal.test.store.rev140422.lists.unordered.container.UnorderedListKey)

Example 2 with UnorderedListKey

use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.md.sal.test.store.rev140422.lists.unordered.container.UnorderedListKey in project controller by opendaylight.

the class DataServiceIT method createNode.

private static UnorderedList createNode(final String string) {
    UnorderedListBuilder ret = new UnorderedListBuilder();
    UnorderedListKey nodeKey = new UnorderedListKey(string);
    ret.setKey(nodeKey);
    ret.setName("name of " + string);
    ret.setName("value of " + string);
    return ret.build();
}
Also used : UnorderedListBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.md.sal.test.store.rev140422.lists.unordered.container.UnorderedListBuilder) UnorderedListKey(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.md.sal.test.store.rev140422.lists.unordered.container.UnorderedListKey)

Aggregations

UnorderedListKey (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.md.sal.test.store.rev140422.lists.unordered.container.UnorderedListKey)2 Lists (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.md.sal.test.store.rev140422.Lists)1 UnorderedList (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.md.sal.test.store.rev140422.lists.unordered.container.UnorderedList)1 UnorderedListBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.md.sal.test.store.rev140422.lists.unordered.container.UnorderedListBuilder)1