Class UaNodeIdUtils

    • Constructor Summary

      Constructors 
      Constructor Description
      UaNodeIdUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static com.plccom.opc.ua.builtintypes.NodeId toNodeId​(com.plccom.opc.ua.builtintypes.ExpandedNodeId expandedNodeId)
      Convert the expandedNodeId to a NodeId using the name space indexes of the table
      static com.plccom.opc.ua.builtintypes.NodeId tryGetLocalNodeId​(com.plccom.opc.ua.builtintypes.ExpandedNodeId expandedNodeId)
      if the nodeId refers to a local node, i.e. a node that is in the server's own namespace returns this nodeid, otherwise null
    • Constructor Detail

      • UaNodeIdUtils

        public UaNodeIdUtils()
    • Method Detail

      • toNodeId

        public static com.plccom.opc.ua.builtintypes.NodeId toNodeId​(com.plccom.opc.ua.builtintypes.ExpandedNodeId expandedNodeId)
                                                              throws com.plccom.opc.ua.common.ServiceResultException
        Convert the expandedNodeId to a NodeId using the name space indexes of the table
        Parameters:
        expandedNodeId - the expanded node ID
        Returns:
        The respective mNodeId
        Throws:
        com.plccom.opc.ua.common.ServiceResultException - if there is no entry for the namespaceUri used in the expandedNodeId
      • tryGetLocalNodeId

        public static com.plccom.opc.ua.builtintypes.NodeId tryGetLocalNodeId​(com.plccom.opc.ua.builtintypes.ExpandedNodeId expandedNodeId)
                                                                       throws com.plccom.opc.ua.common.ServiceResultException
        if the nodeId refers to a local node, i.e. a node that is in the server's own namespace returns this nodeid, otherwise null
        Parameters:
        expandedNodeId - the nodeID
        Returns:
        the local nodeId or null
        Throws:
        com.plccom.opc.ua.common.ServiceResultException - on communication error