public class UaObjectNode extends UaInstanceNode implements UaObject, UaCallable
UaObject.
It keeps all attributes in memory.
UaNode.ParametersNODE_VERSION_PROPERTY_NAME, useQuickPropertyLookupeventListeners, INITIALIZATION_TIME, nodeManager, supportedAttributesMap| Modifier | Constructor and Description |
|---|---|
|
UaObjectNode(NodeManagerUaNode nodeManager,
NodeId nodeId,
QualifiedName browseName,
LocalizedText displayName)
Create a new object node
|
|
UaObjectNode(NodeManagerUaNode nodeManager,
NodeId nodeId,
String name,
Locale locale)
Create a new object node with name.
|
protected |
UaObjectNode(UaNode.Parameters parameters) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCallListener(CallableListener listener) |
Object[] |
callMethod(NodeId methodId,
Object... inputArgs)
Call a method on the object.
|
Variant[] |
callMethod(ServiceContext serviceContext,
NodeId methodId,
Variant[] inputArguments,
StatusCode[] inputArgumentResults,
DiagnosticInfo[] inputArgumentDiagnosticInfos)
Fallback implementation when no subtype handles the method call.
|
protected void |
deleteIfNodeExists(NodeId nodeID) |
NodeAttributes |
getAttributes()
Returns the current attribute values of the node in a NodeAttributes structure.
|
protected NodeAttributes |
getAttributes(ObjectAttributes attributes) |
protected void |
getAttributesMap(Map<UnsignedInteger,Object> map) |
protected ExpandedNodeId |
getDefaultTypeDefinition() |
EventNotifierType |
getEventNotifier()
Defines whether the node can be used to subscribe to events.
|
UaProperty |
getIcon()
The Icon Property provides an image that can be used by clients when displaying the Node.
|
NodeClass |
getNodeClass()
The NodeClass Attribute identifies the NodeClass of a Node.
|
protected void |
initSupportedAttributes(List<UnsignedInteger> l) |
protected void |
readAttributeValue(UnsignedInteger attributeId,
DataValue dataValue)
Read the value of an attribute.
|
void |
removeCallListener(CallableListener listener) |
void |
setAttributes(NodeAttributes nodeAttributes)
Sets the attributes of the node.
|
void |
setEventNotifier(EventNotifierType eventNotifier)
Define which kind of events the object generates.
|
void |
setIcon(UaProperty icon)
Set the value of the Icon property.
|
String |
toString() |
protected void |
writeAttributeValue(UnsignedInteger attributeId,
Object value,
StatusCode statusCode,
DateTime sourceTime,
UnsignedShort sourcePicoseconds) |
addModellingRule, beforeAddReference, getTypeDefinition, getTypeDefinitionId, hasTypeDefinition, registerOverridePlainMethod, setTypeDefinition, setTypeDefinitionId, setTypeDefinitionId, supportsTypeDefinitionNodeaddPlainProperty, addPlainVariable, assertTypeSupport, assertTypeSupport, createNodeId, createNodeId, createReflectiveInstanceProperty, createReflectiveInstanceProperty, deleteReference, deleteReference, doAddProperty, getAttributes, getAttributesMap, getBrowseName, getComponent, getComponents, getDescription, getDescription, getDisplayName, getDisplayName, getMethod, getNodeVersion, getNodeVersionNode, getProperties, getProperty, getPropertyReference, getPropertyValue, getReferencesAsList, getStandardBrowseName, getStandardDisplayText, getUserWriteMask, getWriteMask, hasProperty, hasReference, hasUserWriteAccess, hasWriteAccess, incNodeVersion, initNodeVersion, isChildOfType, readAttribute, readAttribute, registerCallbackProperty, registerPlainInstanceProperty, registerPlainInstanceProperty, registerPlainProperty, registerPlainProperty, registerPlainVariable, registerPlainVariable, registerReflectiveInstanceProperty, registerReflectiveInstanceVariable, registerReflectiveProperty, registerReflectiveVariable, removeProperty, setAccessLevelRecursively, setAccessLevelRecursively, setAttribute, setBrowseName, setDescription, setDisplayName, setNodeVersion, setPropertyValue, setUserWriteMask, setWriteMask, writeAttributeaddComponent, 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, 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, waitgetTypeDefinition, getTypeDefinitionId, setTypeDefinition, setTypeDefinitionId, setTypeDefinitionIdaddComponent, addOrganizes, addProperty, addReference, addReference, addReference, addReference, addReference, addReference, deleteReference, deleteReference, deleteReference, deleteReference, getAddressSpace, getAttributesMap, getBrowseName, getBrowsePaths, getComponent, getComponents, getDescription, getDisplayName, getForwardReferences, getInverseReferences, getMethod, getNodeId, getNodeVersionNode, getOrganizedNode, getOrganizedNodes, getProperties, getProperty, getReference, getReferences, getReferences, getSupportedAttributes, getUaBrowsePaths, getUaNodeId, getUserData, getUserWriteMask, getWriteMask, hasUserWriteAccess, hasWriteAccess, readAttribute, readAttribute, removeComponent, removeProperty, setAttribute, setBrowseName, setDescription, setDisplayName, setReferences, setUserData, setUserWriteMask, setWriteMask, supportsAttribute, writeAttributepublic UaObjectNode(NodeManagerUaNode nodeManager, NodeId nodeId, QualifiedName browseName, LocalizedText displayName)
nodeId - The node identifierbrowseName - The BrowseName of the nodedisplayName - The DisplayName of the nodepublic UaObjectNode(NodeManagerUaNode nodeManager, NodeId nodeId, String name, Locale locale)
nodeId - The node identifiername - The browse and display name of the object. The NamespaceIndex of the nodeId is also
used for the BrowseName.locale - The locale of the name, used for the DisplayNameprotected UaObjectNode(UaNode.Parameters parameters)
public void addCallListener(CallableListener listener)
addCallListener in interface UaCallablepublic Object[] callMethod(NodeId methodId, Object... inputArgs) throws StatusException
callMethod in interface UaObjectmethodId - id of the methodinputArgs - input arguments for the method callStatusException - if the call fails due to invalid arguments or
something like that.public Variant[] callMethod(ServiceContext serviceContext, NodeId methodId, Variant[] inputArguments, StatusCode[] inputArgumentResults, DiagnosticInfo[] inputArgumentDiagnosticInfos) throws StatusException
callMethod in interface UaCallableStatusExceptionpublic NodeAttributes getAttributes()
UaNodegetAttributes in interface UaNodegetAttributes in class BaseNodepublic EventNotifierType getEventNotifier()
UaObject| Value | Description |
|---|---|
| SubscribeToEvents | Indicates if it can be used to subscribe to Events (0 means cannot be used to subscribe to Events, 1 means can be used to subscribe to Events). |
| HistoryRead | Indicates if the history of the Events is readable (0 means not readable, 1 means readable). |
| HistoryWrite | Indicates if the history of the Events is writable (0 means not writable, 1 means writable). |
getEventNotifier in interface UaObjectpublic UaProperty getIcon()
UaObjectpublic final NodeClass getNodeClass()
UaNodegetNodeClass in interface UaNodegetNodeClass in class BaseNodepublic void removeCallListener(CallableListener listener)
removeCallListener in interface UaCallablepublic void setAttributes(NodeAttributes nodeAttributes)
UaNodesetAttributes in interface UaNodesetAttributes in class BaseNodepublic void setEventNotifier(EventNotifierType eventNotifier)
UaObjectsetEventNotifier in interface UaObjecteventNotifier - the set of event types that the object generatespublic void setIcon(UaProperty icon) throws StatusException
UaObjectsetIcon in interface UaObjecticon - the Icon to setStatusExceptionUaObject.getIcon()public String toString()
toString in class UaInstanceNodeprotected void deleteIfNodeExists(NodeId nodeID)
protected NodeAttributes getAttributes(ObjectAttributes attributes)
protected void getAttributesMap(Map<UnsignedInteger,Object> map)
getAttributesMap in class BaseNodeprotected ExpandedNodeId getDefaultTypeDefinition()
getDefaultTypeDefinition in class UaInstanceNodeprotected void initSupportedAttributes(List<UnsignedInteger> l)
initSupportedAttributes in class ServerNodeprotected void readAttributeValue(UnsignedInteger attributeId, DataValue dataValue) throws StatusException
BaseNodereadAttributeValue in class BaseNodeattributeId - the ID of the attribute to read.dataValue - the DataValue structure in which the value is set.StatusException - if the attributeId is not valid for this (base) node implementation.protected void writeAttributeValue(UnsignedInteger attributeId, Object value, StatusCode statusCode, DateTime sourceTime, UnsignedShort sourcePicoseconds) throws StatusException
writeAttributeValue in class BaseNodeStatusExceptionCopyright © 2026. All rights reserved.