public abstract class UaInstanceNode extends BaseNode implements UaInstance
UaInstance.
It keeps all attributes in memory.
Note that the OPC UA Specification does not define or represent such a common "base class" for
all instance nodes. However, all instance nodes support TypeDefinition reference. In principle
UaInstance separates the instance nodes from type nodes, which implement UaType.
UaNode.ParametersNODE_VERSION_PROPERTY_NAME, useQuickPropertyLookupeventListeners, INITIALIZATION_TIME, nodeManager, supportedAttributesMap| Modifier | Constructor and Description |
|---|---|
|
UaInstanceNode(NodeManagerUaNode nodeManager,
NodeId nodeId,
QualifiedName browseName,
LocalizedText displayName) |
|
UaInstanceNode(NodeManagerUaNode nodeManager,
NodeId nodeId,
String name,
Locale locale) |
protected |
UaInstanceNode(UaNode.Parameters parameters) |
| Modifier and Type | Method and Description |
|---|---|
UaReference |
addModellingRule(ModellingRule modellingRule)
Adds a ModellingRule reference to the node.
|
protected boolean |
beforeAddReference(UaReference reference) |
protected abstract ExpandedNodeId |
getDefaultTypeDefinition() |
UaType |
getTypeDefinition()
The UaType object corresponding to TypeDefinitionId.
|
ExpandedNodeId |
getTypeDefinitionId()
Reference to the NodeId of the object's type definition.
|
boolean |
hasTypeDefinition() |
protected UaMethod |
registerOverridePlainMethod(String name) |
void |
setTypeDefinition(UaType type)
Sets the type of the node.
|
void |
setTypeDefinitionId(ExpandedNodeId typeDefinitionId)
Sets the type definition to an ExpandedNodeId.
|
void |
setTypeDefinitionId(NodeId typeDefinitionId)
Sets the type definition to a local NodeId.
|
protected boolean |
supportsTypeDefinitionNode()
Defines that the instance supports the TypeDefinition reference to a node, i.e.
|
String |
toString() |
addPlainProperty, addPlainVariable, assertTypeSupport, assertTypeSupport, createNodeId, createNodeId, createReflectiveInstanceProperty, createReflectiveInstanceProperty, deleteReference, deleteReference, doAddProperty, getAttributes, getAttributes, getAttributesMap, getAttributesMap, getBrowseName, getComponent, getComponents, getDescription, getDescription, getDisplayName, getDisplayName, getMethod, getNodeClass, getNodeVersion, getNodeVersionNode, getProperties, getProperty, getPropertyReference, getPropertyValue, getReferencesAsList, getStandardBrowseName, getStandardDisplayText, getUserWriteMask, getWriteMask, hasProperty, hasReference, hasUserWriteAccess, hasWriteAccess, incNodeVersion, initNodeVersion, isChildOfType, readAttribute, readAttribute, readAttributeValue, registerCallbackProperty, registerPlainInstanceProperty, registerPlainInstanceProperty, registerPlainProperty, registerPlainProperty, registerPlainVariable, registerPlainVariable, registerReflectiveInstanceProperty, registerReflectiveInstanceVariable, registerReflectiveProperty, registerReflectiveVariable, removeProperty, setAccessLevelRecursively, setAccessLevelRecursively, setAttribute, setAttributes, setBrowseName, setDescription, setDisplayName, setNodeVersion, setPropertyValue, setUserWriteMask, setWriteMask, writeAttribute, writeAttributeValueaddComponent, addDataChangeListener, addEventListener, addNewReference, addNewReference, addOrganizes, addProperties, addProperty, addReference, addReference, addReference, addReference, addReference, addReference, afterAddReference, afterDeleteReference, dataChange, deleteReference, deleteReference, deleteReferences, doDeleteReference, equals, findPlaceholders, fireDataChange, fireEvent, fireEventInParents, getAddressSpace, getDefaultBrowseName, getNodeId, getNodeManager, getNodeSetExtensions, getReference, getReferenceList, getReferences, getSupportedAttributes, getTargetNodes, getUaNodeId, hashCode, initSupportedAttributes, isAddNotifierReferencesToServerObject, isFalseOrNull, isMandatory, isMonitoredForEvents, isTrueOrNull, isType, referenceTypeInherits, removeComponent, removeDataChangeListener, removeEventListener, setAddNotifierReferencesToServerObject, setNodeSetExtensions, setReferences, supportsAttribute, translateBrowsePathToNodeIds, validateHasEventSourceChain, validateHasEventSourceChaingetForwardReferences, getInverseReferences, getReferences, getReferences, getUserData, referenceTypeInherits, setUserDataclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddComponent, addOrganizes, addProperty, addReference, addReference, addReference, addReference, addReference, addReference, deleteReference, deleteReference, deleteReference, deleteReference, getAddressSpace, getAttributes, getAttributesMap, getBrowseName, getBrowsePaths, getComponent, getComponents, getDescription, getDisplayName, getForwardReferences, getInverseReferences, getMethod, getNodeClass, getNodeId, getNodeVersionNode, getOrganizedNode, getOrganizedNodes, getProperties, getProperty, getReference, getReferences, getReferences, getSupportedAttributes, getUaBrowsePaths, getUaNodeId, getUserData, getUserWriteMask, getWriteMask, hasUserWriteAccess, hasWriteAccess, readAttribute, readAttribute, removeComponent, removeProperty, setAttribute, setAttributes, setBrowseName, setDescription, setDisplayName, setReferences, setUserData, setUserWriteMask, setWriteMask, supportsAttribute, writeAttributepublic UaInstanceNode(NodeManagerUaNode nodeManager, NodeId nodeId, QualifiedName browseName, LocalizedText displayName)
nodeId - browseName - displayName - public UaInstanceNode(NodeManagerUaNode nodeManager, NodeId nodeId, String name, Locale locale)
nodeId - name - locale - protected UaInstanceNode(UaNode.Parameters parameters)
public UaReference addModellingRule(ModellingRule modellingRule)
modellingRule - public UaType getTypeDefinition()
UaInstancegetTypeDefinition in interface UaInstanceUaInstance.getTypeDefinitionId(),
UaInstance.setTypeDefinition(UaType),
UaInstance.setTypeDefinitionId(NodeId),
UaInstance.setTypeDefinitionId(ExpandedNodeId)public ExpandedNodeId getTypeDefinitionId()
getTypeDefinitionId in interface UaInstanceUaInstance.getTypeDefinition(),
UaInstance.setTypeDefinition(UaType),
UaInstance.setTypeDefinitionId(NodeId),
UaInstance.setTypeDefinitionId(ExpandedNodeId)public boolean hasTypeDefinition()
hasTypeDefinition in class BaseNodepublic void setTypeDefinition(UaType type)
setTypeDefinition in interface UaInstancetype - UaInstance.getTypeDefinitionId(),
UaInstance.getTypeDefinition(),
UaInstance.setTypeDefinitionId(ExpandedNodeId),
UaInstance.setTypeDefinitionId(NodeId)public void setTypeDefinitionId(ExpandedNodeId typeDefinitionId)
UaInstancesetTypeDefinitionId in interface UaInstancetypeDefinitionId - the type definition Id to setUaInstance.getTypeDefinitionId(),
UaInstance.getTypeDefinition(),
UaInstance.setTypeDefinition(UaType),
UaInstance.setTypeDefinitionId(NodeId)public final void setTypeDefinitionId(NodeId typeDefinitionId)
UaInstanceIf
setTypeDefinitionId in interface UaInstancetypeDefinitionId - the type definition Id to setUaInstance.getTypeDefinitionId(),
UaInstance.getTypeDefinition(),
UaInstance.setTypeDefinition(UaType),
UaInstance.setTypeDefinitionId(ExpandedNodeId)protected boolean beforeAddReference(UaReference reference)
beforeAddReference in class ServerNodeprotected abstract ExpandedNodeId getDefaultTypeDefinition()
protected UaMethod registerOverridePlainMethod(String name)
name - protected boolean supportsTypeDefinitionNode()
The events will need to disable this, for instance.
Copyright © 2026. All rights reserved.