class QOpcUaAddReferenceItem

This class stores the necessary information to add a new reference on the server. More

Synopsis

Methods

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description

See also

addReference()

__init__()

Default constructs an add reference item with no parameters set.

__init__(other)
Parameters:

otherQOpcUaAddReferenceItem

Constructs an add reference item from other.

isForwardReference()
Return type:

bool

Returns the isForwardReference flag.

referenceTypeId()
Return type:

str

Returns the reference type id.

setIsForwardReference(isForwardReference)
Parameters:

isForwardReference – bool

Sets the isForwardReference flag to isForwardReference. If the flag is set, a forward reference is created. Otherwise, an inverse reference is created.

setReferenceTypeId(referenceTypeId)
Parameters:

referenceTypeId – str

Sets the reference type id to referenceTypeId. A reference of this type will be created on the server.

setSourceNodeId(sourceNodeId)
Parameters:

sourceNodeId – str

Sets the node id of the source node to sourceNodeId.

See also

sourceNodeId()

setTargetNodeClass(targetNodeClass)
Parameters:

targetNodeClassNodeClass

Sets the node class of the target node to targetNodeClass. The target node class shall be specified because the target node might be located on another server.

setTargetNodeId(targetNodeId)
Parameters:

targetNodeIdQOpcUaExpandedNodeId

Sets the node id of the target node to targetNodeId.

See also

targetNodeId()

setTargetServerUri(targetServerUri)
Parameters:

targetServerUri – str

Sets the URI of the target server to targetServerUri. If this value is set, it will override the server URI from setTargetNodeId() .

sourceNodeId()
Return type:

str

Returns the source node id.

targetNodeClass()
Return type:

NodeClass

Returns the target node class.

targetNodeId()
Return type:

QOpcUaExpandedNodeId

Returns the target node id.

targetServerUri()
Return type:

str

Returns the target server URI.