Split out odl-netconf-device.yang
[netconf.git] / netconf / netconf-console / src / main / java / org / opendaylight / netconf / console / utils / NetconfIidFactory.java
index 8df16c66420cf22ce05c5c7cf5163ddcb6a049de..fff596d3ed4aa6b4c41156cd7de5c1c60fe5d086 100644 (file)
@@ -5,10 +5,9 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-
 package org.opendaylight.netconf.console.utils;
 
-import org.opendaylight.yang.gen.v1.urn.opendaylight.netconf.node.topology.rev150114.network.topology.topology.topology.types.TopologyNetconf;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.netconf.node.topology.rev221225.network.topology.topology.topology.types.TopologyNetconf;
 import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.NetworkTopology;
 import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.NodeId;
 import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.TopologyId;
@@ -18,18 +17,17 @@ import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.
 import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.NodeKey;
 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
 
-public class NetconfIidFactory {
-
-    private NetconfIidFactory() {
-        throw new IllegalStateException("Instantiating utility class.");
-    }
-
+public final class NetconfIidFactory {
     public static final InstanceIdentifier<Topology> NETCONF_TOPOLOGY_IID =
             InstanceIdentifier.builder(NetworkTopology.class)
             .child(Topology.class, new TopologyKey(new TopologyId(TopologyNetconf.QNAME.getLocalName())))
             .build();
 
-    public static final InstanceIdentifier<Node> netconfNodeIid(final String nodeId) {
+    private NetconfIidFactory() {
+        // Hidden on purpose
+    }
+
+    public static InstanceIdentifier<Node> netconfNodeIid(final String nodeId) {
         return NETCONF_TOPOLOGY_IID.child(Node.class, new NodeKey(new NodeId(nodeId)));
     }
 }