2 * Copyright (c) 2015 Inocybe Technologies 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.groupbasedpolicy.renderer.iovisor.utils;
11 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.iovisor.rev151030.IovisorModuleInstances;
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.iovisor.rev151030.iovisor.module.instances.IovisorModuleInstance;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.iovisor.rev151030.iovisor.module.instances.IovisorModuleInstanceKey;
14 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
17 public class IovisorIidFactory {
19 private IovisorIidFactory() {
22 private static final InstanceIdentifier<IovisorModuleInstances> IOVISOR_MODULE_INSTANCES_IID = InstanceIdentifier.builder(IovisorModuleInstances.class).build();
25 * @return The {@link InstanceIdentifier} of the {@link IovisorModuleInstances}
27 public static InstanceIdentifier<IovisorModuleInstances> iovisorModuleInstancesIid() {
28 return IOVISOR_MODULE_INSTANCES_IID;
32 * Return the InstanceIdentifier for a specific IovisorModuleInstance.
33 * @param iovisorModuleInstanceKey The key of the {@link IovisorModuleInstance} we want to retrieve.
34 * @return The {@link InstanceIdentifier} of the {@link IovisorModuleInstance}
36 public static InstanceIdentifier<IovisorModuleInstance> iovisorModuleInstanceIid(IovisorModuleInstanceKey iovisorModuleInstanceKey) {
37 return IOVISOR_MODULE_INSTANCES_IID.child(IovisorModuleInstance.class, iovisorModuleInstanceKey);