You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2023/01/25 10:15:38 UTC

[plc4x-build-tools] branch develop updated: feat(build-tools): Added a getNullBytesHex() method to access the hullBytesHex attribute on optional fields.

This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x-build-tools.git


The following commit(s) were added to refs/heads/develop by this push:
     new a66b0a5  feat(build-tools): Added a getNullBytesHex() method to access the hullBytesHex attribute on optional fields.
a66b0a5 is described below

commit a66b0a56cf20ea9a6716228e64493d8f1acd1c09
Author: Christofer Dutz <ch...@rivian.com>
AuthorDate: Wed Jan 25 09:42:57 2023 +0100

    feat(build-tools): Added a getNullBytesHex() method to access the hullBytesHex attribute on optional fields.
---
 .../plc4x/plugins/codegenerator/types/fields/OptionalField.java      | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/code-generation/types-base/src/main/java/org/apache/plc4x/plugins/codegenerator/types/fields/OptionalField.java b/code-generation/types-base/src/main/java/org/apache/plc4x/plugins/codegenerator/types/fields/OptionalField.java
index 356a164..24c1075 100644
--- a/code-generation/types-base/src/main/java/org/apache/plc4x/plugins/codegenerator/types/fields/OptionalField.java
+++ b/code-generation/types-base/src/main/java/org/apache/plc4x/plugins/codegenerator/types/fields/OptionalField.java
@@ -18,7 +18,6 @@
  */
 package org.apache.plc4x.plugins.codegenerator.types.fields;
 
-
 import org.apache.plc4x.plugins.codegenerator.types.terms.Term;
 
 import java.util.Optional;
@@ -31,4 +30,8 @@ public interface OptionalField extends PropertyField {
 
     Optional<Term> getConditionExpression();
 
+    default Optional<Term> getNullBytesHex() {
+        return this.getAttribute("nullBytesHex");
+    }
+
 }