Class InstanceIdentifierUtils


  • public final class InstanceIdentifierUtils
    extends Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Flow> createFlowPath​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Table> tablePath, FlowKey flowKey)
      Creates a path for particular flow, by appending flow-specific information to table path.
      static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.node.NodeConnector> createNodeConnectorPath​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node> nodeKey, org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.node.NodeConnectorKey nodeConnectorKey)  
      static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node> createNodePath​(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeId nodeId)
      Creates an Instance Identifier (path) for node with specified id.
      static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Table> createTablePath​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node> nodePath, TableKey tableKey)
      Creates a table path by appending table specific location to node path.
      static org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.node.NodeConnectorKey getNodeConnectorKey​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> nodeConnectorPath)
      Extracts NodeConnectorKey from node connector path.
      static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node> getNodePath​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> nodeChild)
      Shorten's node child path to node path.
      static org.opendaylight.yangtools.yang.common.Uint8 getTableId​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Table> tablePath)
      Extract table id from table path.
    • Method Detail

      • createNodePath

        public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node> createNodePath​(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeId nodeId)
        Creates an Instance Identifier (path) for node with specified id.
        Parameters:
        nodeId - the NodeId
      • getNodePath

        public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node> getNodePath​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> nodeChild)
        Shorten's node child path to node path.
        Parameters:
        nodeChild - child of node, from which we want node path.
      • createTablePath

        public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Table> createTablePath​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node> nodePath,
                                                                                                        TableKey tableKey)
        Creates a table path by appending table specific location to node path.
        Parameters:
        nodePath - the node path
        tableKey - the table yey
      • createFlowPath

        public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Flow> createFlowPath​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Table> tablePath,
                                                                                                      FlowKey flowKey)
        Creates a path for particular flow, by appending flow-specific information to table path.
        Parameters:
        tablePath - the table path
        flowKey - the flow key
        Returns:
        path to flow
      • getTableId

        public static org.opendaylight.yangtools.yang.common.Uint8 getTableId​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Table> tablePath)
        Extract table id from table path.
        Parameters:
        tablePath - the table path
      • getNodeConnectorKey

        public static org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.node.NodeConnectorKey getNodeConnectorKey​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> nodeConnectorPath)
        Extracts NodeConnectorKey from node connector path.
      • createNodeConnectorPath

        public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.node.NodeConnector> createNodeConnectorPath​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node> nodeKey,
                                                                                                                                                                                               org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.node.NodeConnectorKey nodeConnectorKey)