ObjectTypeNode¶
Canonical path: o6.node.ObjectTypeNode
ObjectTypeNode
¶
Bases: Node
Node representing an OPC UA ObjectType.
Browsing it walks the type's own instance declarations, so it shows what an instance of the type will contain rather than any one instance's children.
Functions¶
__init__
¶
Wrap an existing node. Handles come from a client, server, or browsing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
backend
|
Any
|
The client or server backend that carries out operations. |
required |
nodeId
|
NodeIdLike
|
NodeId of the node. |
required |
browseName
|
QualifiedName
|
BrowseName of the node. |
required |
__lshift__
¶
Reject event emission on any NodeClass but Object and View.
Overridden by ObjectNode and
ViewNode -- the only NodeClasses OPC UA defines
an EventNotifier attribute for -- with the real implementation.
__call__
¶
Read or write one attribute of this node.
Called without a value it reads, and with a value it writes. The
attribute defaults to Value. Reads return values for all Good-severity
statuses and raise for Uncertain or Bad; use the owning client/server's
read(..., valueOnly=False) to inspect status and timestamp metadata.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
Any
|
The value to write. Omit it to read instead. |
_UNSET
|
attr
|
Optional[AttributeId | str]
|
The attribute to address, as an
|
None
|
Returns:
| Type | Description |
|---|---|
MaybeAwaitable[Any]
|
The attribute value when reading, |
MaybeAwaitable[Any]
|
always receive an awaitable, including for immediate local results. |
Raises:
| Type | Description |
|---|---|
StatusCodeError
|
The read or write operation failed. |
__getitem__
¶
Resolve a browse path relative to this node.
Use this where attribute access cannot reach: a BrowseName that is not a Python identifier, an ambiguous name, or a multi-step relative path.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
key
|
str | 'ns0.datatypes.RelativePath'
|
A relative-path string such as |
required |
Returns:
| Type | Description |
|---|---|
MaybeAwaitable[list[Any]]
|
Every node the path resolves to, as a list; awaitable in async tasks. |
Raises:
| Type | Description |
|---|---|
KeyError
|
The path matches no node. |