Package com.plccom.opc.ua.client.utils
Class UaNodeIdUtils
- java.lang.Object
-
- com.plccom.opc.ua.client.utils.UaNodeIdUtils
-
public class UaNodeIdUtils extends Object
contains static utils for converting ExpandedNodeId objects- Author:
- Indi.An GmbH, www.indi-an.com, support@indi-an.com
-
-
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.NodeIdtoNodeId(com.plccom.opc.ua.builtintypes.ExpandedNodeId expandedNodeId)Convert the expandedNodeId to a NodeId using the name space indexes of the tablestatic com.plccom.opc.ua.builtintypes.NodeIdtryGetLocalNodeId(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
-
-
-
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.ServiceResultExceptionConvert 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.ServiceResultExceptionif 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
-
-