-
Notifications
You must be signed in to change notification settings - Fork 472
Implement UaVariableTypeNodeBuilder for UaVariableTypeNode
#1485
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements a new builder pattern for constructing UaVariableTypeNode instances, addressing issue #1484. Key changes include adding the UaVariableTypeNodeBuilder class with methods to set various node properties, builder methods (build, buildAndAdd) for instantiation, and integration of attribute filters and references.
...sdk/sdk-server/src/main/java/org/eclipse/milo/opcua/sdk/server/nodes/UaVariableTypeNode.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements the UaVariableTypeNodeBuilder to facilitate the construction and management of UaVariableTypeNode instances, while also standardizing the handling of HasTypeDefinition references.
- Added a builder method and inner builder class in UaVariableTypeNode
- Updated the setTypeDefinition method in both UaVariableTypeNode and UaVariableNode to remove duplicate HasTypeDefinition references
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| opc-ua-sdk/sdk-server/src/main/java/org/eclipse/milo/opcua/sdk/server/nodes/UaVariableTypeNode.java | Introduced the UaVariableTypeNodeBuilder and helper methods to build and add nodes |
| opc-ua-sdk/sdk-server/src/main/java/org/eclipse/milo/opcua/sdk/server/nodes/UaVariableNode.java | Updated setTypeDefinition method to remove existing HasTypeDefinition references |
fixes #1484