You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by hu...@apache.org on 2021/03/27 23:48:58 UTC

[plc4x-build-tools] branch feature/opcua_native_client updated (d930eb3 -> a13cf7f)

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

hutcheb pushed a change to branch feature/opcua_native_client
in repository https://gitbox.apache.org/repos/asf/plc4x-build-tools.git.


    from d930eb3  First pass at allows variable string lengths.
     add a86a8f7  - Cleanup after preparing the release
     add d9646f9  - Added a fieldName property to the EnumField
     new 062b6b9  Merge branch 'develop' into feature/opcua_native_client
     new a13cf7f  Refactored the String lentgh expression to a Term.

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 NOTICE                                                       |  2 +-
 .../plc4x/plugins/codegenerator/types/fields/EnumField.java  |  3 +++
 .../types/references/DefaultStringTypeReference.java         | 12 +++++++-----
 .../codegenerator/types/references/StringTypeReference.java  |  4 +++-
 plc4x-site-skin/NOTICE                                       |  2 +-
 5 files changed, 15 insertions(+), 8 deletions(-)

[plc4x-build-tools] 02/02: Refactored the String lentgh expression to a Term.

Posted by hu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit a13cf7f15e539899f0caa1b546fc328a2acd6f04
Author: hutcheb <be...@gmail.com>
AuthorDate: Sat Mar 27 16:44:56 2021 -0400

    Refactored the String lentgh expression to a Term.
---
 .../types/references/DefaultStringTypeReference.java         | 12 +++++++-----
 .../codegenerator/types/references/StringTypeReference.java  |  4 +++-
 2 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/code-generation/types-base/src/main/java/org/apache/plc4x/plugins/codegenerator/types/references/DefaultStringTypeReference.java b/code-generation/types-base/src/main/java/org/apache/plc4x/plugins/codegenerator/types/references/DefaultStringTypeReference.java
index 161dc06..554dc88 100644
--- a/code-generation/types-base/src/main/java/org/apache/plc4x/plugins/codegenerator/types/references/DefaultStringTypeReference.java
+++ b/code-generation/types-base/src/main/java/org/apache/plc4x/plugins/codegenerator/types/references/DefaultStringTypeReference.java
@@ -19,21 +19,23 @@
 
 package org.apache.plc4x.plugins.codegenerator.types.references;
 
+import org.apache.plc4x.plugins.codegenerator.types.terms.Term;
+
 public class DefaultStringTypeReference extends DefaultSimpleTypeReference implements StringTypeReference {
 
-    private final String length;
+    private final Term lengthExpression;
 
     private final String encoding;
 
-    public DefaultStringTypeReference(SimpleBaseType baseType, String length, String encoding) {
+    public DefaultStringTypeReference(SimpleBaseType baseType, Term lengthExpression, String encoding) {
         super(baseType, -1);
-        this.length = length;
+        this.lengthExpression = lengthExpression;
         this.encoding = encoding;
 
     }
 
-    public String getLength() {
-        return length;
+    public Term getLengthExpression() {
+        return lengthExpression;
     }
 
     @Override
diff --git a/code-generation/types-base/src/main/java/org/apache/plc4x/plugins/codegenerator/types/references/StringTypeReference.java b/code-generation/types-base/src/main/java/org/apache/plc4x/plugins/codegenerator/types/references/StringTypeReference.java
index 796a6a8..bca4cfd 100644
--- a/code-generation/types-base/src/main/java/org/apache/plc4x/plugins/codegenerator/types/references/StringTypeReference.java
+++ b/code-generation/types-base/src/main/java/org/apache/plc4x/plugins/codegenerator/types/references/StringTypeReference.java
@@ -18,9 +18,11 @@ under the License.
 */
 package org.apache.plc4x.plugins.codegenerator.types.references;
 
+import org.apache.plc4x.plugins.codegenerator.types.terms.Term;
+
 public interface StringTypeReference extends SimpleTypeReference {
 
-    String getLength();
+    Term getLengthExpression();
 
     String getEncoding();
 

[plc4x-build-tools] 01/02: Merge branch 'develop' into feature/opcua_native_client

Posted by hu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 062b6b9e6ccd4a974c77988c548a297b8235a49e
Merge: d930eb3 d9646f9
Author: hutcheb <be...@gmail.com>
AuthorDate: Mon Feb 15 06:27:54 2021 -0500

    Merge branch 'develop' into feature/opcua_native_client

 NOTICE                                                                 | 2 +-
 .../org/apache/plc4x/plugins/codegenerator/types/fields/EnumField.java | 3 +++
 plc4x-site-skin/NOTICE                                                 | 2 +-
 3 files changed, 5 insertions(+), 2 deletions(-)