Class NodeId
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNodeId(int namespaceIndex, int identifier) NodeId(int namespaceIndex, ByteString identifier) NodeId(UShort namespaceIndex, ByteString identifier) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanequals(ExpandedNodeId xni) Deprecated.booleanequals(ExpandedNodeId xni, NamespaceTable namespaceTable) Deprecated.useequalTo(ExpandedNodeId, NamespaceTable)instead.booleanequalTo(ExpandedNodeId xni) Check if thisNodeIdis equal toxni.booleanequalTo(ExpandedNodeId xni, NamespaceTable namespaceTable) Check if thisNodeIdis equal toxni.expanded()Convert this NodeId to a relativeExpandedNodeId.expanded(NamespaceTable namespaceTable) Convert this NodeId to an absoluteExpandedNodeId, usingnamespaceTableto convert the namespace index to a namespace URI.getType()inthashCode()booleanbooleanisNull()static NodeIdstatic @Nullable NodeIdparseOrNull(@NonNull String s) reindex(NamespaceTable namespaceTable, String namespaceUri) Re-index thisNodeIdfrom its current namespace index to the index fornamespaceUri.toString()Return a newNodeIdwithid.Return a newNodeIdwithid.withId(ByteString id) Return a newNodeIdwithid.Return a newNodeIdwithid.withNamespaceIndex(UShort namespaceIndex) Return a newNodeIdwithnamespaceIndex.
-
Field Details
-
NULL_NUMERIC
-
NULL_STRING
-
NULL_GUID
-
NULL_OPAQUE
-
NULL_VALUE
-
-
Constructor Details
-
NodeId
public NodeId(int namespaceIndex, int identifier) - Parameters:
namespaceIndex- the index for a namespace URI. An index of 0 is used for OPC UA defined NodeIds.identifier- the identifier for a node in the address space of an OPC UA Server.
-
NodeId
- Parameters:
namespaceIndex- the index for a namespace URI. An index of 0 is used for OPC UA defined NodeIds.identifier- the identifier for a node in the address space of an OPC UA Server.
-
NodeId
- Parameters:
namespaceIndex- the index for a namespace URI. An index of 0 is used for OPC UA defined NodeIds.identifier- the identifier for a node in the address space of an OPC UA Server.
-
NodeId
- Parameters:
namespaceIndex- the index for a namespace URI. An index of 0 is used for OPC UA defined NodeIds.identifier- the identifier for a node in the address space of an OPC UA Server.
-
NodeId
- Parameters:
namespaceIndex- the index for a namespace URI. An index of 0 is used for OPC UA defined NodeIds.identifier- the identifier for a node in the address space of an OPC UA Server.
-
NodeId
- Parameters:
namespaceIndex- the index for a namespace URI. An index of 0 is used for OPC UA defined NodeIds.identifier- the identifier for a node in the address space of an OPC UA Server.
-
NodeId
- Parameters:
namespaceIndex- the index for a namespace URI. An index of 0 is used for OPC UA defined NodeIds.identifier- the identifier for a node in the address space of an OPC UA Server.
-
NodeId
- Parameters:
namespaceIndex- the index for a namespace URI. An index of 0 is used for OPC UA defined NodeIds.identifier- the identifier for a node in the address space of an OPC UA Server.
-
NodeId
- Parameters:
namespaceIndex- the index for a namespace URI. An index of 0 is used for OPC UA defined NodeIds.identifier- the identifier for a node in the address space of an OPC UA Server.
-
NodeId
- Parameters:
namespaceIndex- the index for a namespace URI. An index of 0 is used for OPC UA defined NodeIds.identifier- the identifier for a node in the address space of an OPC UA Server.
-
-
Method Details
-
getNamespaceIndex
-
getIdentifier
-
getType
-
expanded
Convert this NodeId to a relativeExpandedNodeId.- Returns:
- a relative
ExpandedNodeId. - See Also:
-
expanded
Convert this NodeId to an absoluteExpandedNodeId, usingnamespaceTableto convert the namespace index to a namespace URI.- Parameters:
namespaceTable- aNamespaceTableto look up the namespace URI in.- Returns:
- an absolute
ExpandedNodeId. - See Also:
-
isNull
public boolean isNull() -
isNotNull
public boolean isNotNull() -
reindex
Re-index thisNodeIdfrom its current namespace index to the index fornamespaceUri.If the target namespace URI is not present in the namespace table this
NodeIdis returned.- Parameters:
namespaceTable- theNamespaceTable.namespaceUri- the target namespace URI.- Returns:
- a new
NodeIdin the namespace index indicated bynamespaceUri.
-
withId
Return a newNodeIdwithid.- Parameters:
id- the new identifier.- Returns:
- a new
NodeIdwithid.
-
withId
Return a newNodeIdwithid.- Parameters:
id- the new identifier.- Returns:
- a new
NodeIdwithid.
-
withId
Return a newNodeIdwithid.- Parameters:
id- the new identifier.- Returns:
- a new
NodeIdwithid.
-
withId
Return a newNodeIdwithid.- Parameters:
id- the new identifier.- Returns:
- a new
NodeIdwithid.
-
withNamespaceIndex
Return a newNodeIdwithnamespaceIndex.- Parameters:
namespaceIndex- the new namespace index.- Returns:
- a new
NodeIdwithnamespaceIndex.
-
equals
Deprecated.useequalTo(ExpandedNodeId)instead.Check if thisNodeIdis equal toxni.To be considered equal
xnimust be in serverIndex == 0, have a namespace index that is equal this namespace index, or have a namespace URI at the same index in the default namespace table, and an equal identifier.- Parameters:
xni- theExpandedNodeIdto check equality against.- Returns:
trueif thisNodeIdis equal toxni.
-
equals
Deprecated.useequalTo(ExpandedNodeId, NamespaceTable)instead.Check if thisNodeIdis equal toxni.To be considered equal
xnimust be in serverIndex == 0, have a namespace index that is equal this namespace index, or have a namespace URI at the same index in the default namespace table, and an equal identifier.- Parameters:
xni- theExpandedNodeIdto check equality against.namespaceTable- theNamespaceTableused to look up the index of a namespace URI.- Returns:
trueif thisNodeIdis equal toxni.
-
equalTo
Check if thisNodeIdis equal toxni.To be considered equal
xnimust be in serverIndex == 0, have a namespace index that is equal this namespace index, or have a namespace URI at the same index in the default namespace table, and an equal identifier.- Parameters:
xni- theExpandedNodeIdto check equality against.- Returns:
trueif thisNodeIdis equal toxni.
-
equalTo
Check if thisNodeIdis equal toxni.To be considered equal
xnimust be in serverIndex == 0, have a namespace index that is equal this namespace index, or have a namespace URI at the same index in the default namespace table, and an equal identifier.- Parameters:
xni- theExpandedNodeIdto check equality against.namespaceTable- theNamespaceTableused to look up the index of a namespace URI.- Returns:
trueif thisNodeIdis equal toxni.
-
equals
-
hashCode
public int hashCode() -
toString
-
toParseableString
-
parse
- Throws:
UaRuntimeException
-
parseOrNull
-
parseSafe
-
equalTo(ExpandedNodeId)instead.