|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.prosysopc.ua.UaNodeId
public class UaNodeId
This class models an OPC UA NodeId or local ExpandedNodeId. It can be converted
to both.
| Method Summary | |
|---|---|
org.opcfoundation.ua.builtintypes.ExpandedNodeId |
asExpandedNodeId()
Converts this UaNodeId to ExpandedNodeId. |
org.opcfoundation.ua.builtintypes.ExpandedNodeId |
asLocalExpandedNodeId()
Converts this UaNodeId to ExpandedNodeId. |
org.opcfoundation.ua.builtintypes.NodeId |
asNodeId(org.opcfoundation.ua.common.NamespaceTable namespaceTable)
Converts this UaNodeId to NodeId in the context of a NamespaceTable. |
boolean |
equals(Object obj)
|
static UaNodeId |
from(String namespaceUri,
Object value)
Creates new UaNodeId from NamespaceUri and a value. |
static UaNodeId |
fromLocal(org.opcfoundation.ua.builtintypes.ExpandedNodeId expandedNodeId)
Converts an ExpandedNodeId to UaNodeId. |
static UaNodeId |
fromLocal(org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.common.NamespaceTable namespaceTable)
Converts a NodeId to UaNodeId in the context of a NamespaceTable. |
org.opcfoundation.ua.core.IdType |
getIdType()
|
String |
getNamespaceUri()
|
Object |
getValue()
|
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static UaNodeId from(String namespaceUri,
Object value)
namespaceUri - The NamespaceUri for the Namespace (namespace part of the NodeId).value - The value part of the NodeId. Accepts same inputs as NodeId
UaNodeId;public static UaNodeId fromLocal(org.opcfoundation.ua.builtintypes.ExpandedNodeId expandedNodeId)
ExpandedNodeId to UaNodeId. The ExpanededNodeId must have the namespace uri
specified and ExpandedNodeId.isLocal() must be true, otherwise an
IllegalArgumentException is thrown.
expandedNodeId - the ExpandedNodeId to convert.
IllegalArgumentException - if the given ExpandedNodeId does not have uri defined
public static UaNodeId fromLocal(org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.common.NamespaceTable namespaceTable)
NodeId to UaNodeId in the context of a NamespaceTable. The given
NamespaceTable must contain the uri to index mapping for the given NodeId, otherwise an
IllegalArgumentException is thrown.
nodeId - the NodeId to convertnamespaceTable - a NamespaceTable
IllegalArgumentException - if the namespacetable does contain the mapping for the index
of the given nodeIdpublic org.opcfoundation.ua.builtintypes.ExpandedNodeId asExpandedNodeId()
ExpandedNodeId.
public org.opcfoundation.ua.builtintypes.ExpandedNodeId asLocalExpandedNodeId()
ExpandedNodeId. The ExpandedNodeId has uri defined.
public org.opcfoundation.ua.builtintypes.NodeId asNodeId(org.opcfoundation.ua.common.NamespaceTable namespaceTable)
NodeId in the context of a NamespaceTable.
namespaceTable - a namespace table
IllegalArgumentException - if the serverUri is defined for this UaNodeId OR the given
namespacetable does not contain mapping for the namespace uri of this UaNodeIdpublic boolean equals(Object obj)
equals in class Objectpublic org.opcfoundation.ua.core.IdType getIdType()
public String getNamespaceUri()
public Object getValue()
public int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||