Skip to content

Conversation

@kevinherron
Copy link
Contributor

fixes #1484

@kevinherron kevinherron added this to the 1.0.1 milestone Jun 3, 2025
@kevinherron kevinherron requested a review from Copilot June 3, 2025 17:52
Copy link
Contributor

Copilot AI left a 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.

@kevinherron kevinherron requested a review from Copilot June 3, 2025 18:03
Copy link
Contributor

Copilot AI left a 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

@kevinherron kevinherron merged commit b48046e into 1.0 Jun 5, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement UaVariableTypeNodeBuilder

3 participants