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 2019/09/01 15:33:34 UTC

[plc4x-build-tools] branch develop updated: - Added Tags to types

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 e132478  - Added Tags to types
e132478 is described below

commit e1324784e11fbbf6c86809656765b9fb0e35c0cc
Author: Christofer Dutz <ch...@c-ware.de>
AuthorDate: Sun Sep 1 17:33:28 2019 +0200

    - Added Tags to types
---
 .../types/definitions/TypeDefinition.java          |  2 ++
 .../codegenerator/types/fields/TaggedField.java    | 25 ++++++++++++++++++++++
 2 files changed, 27 insertions(+)

diff --git a/code-generation/types-base/src/main/java/org/apache/plc4x/plugins/codegenerator/types/definitions/TypeDefinition.java b/code-generation/types-base/src/main/java/org/apache/plc4x/plugins/codegenerator/types/definitions/TypeDefinition.java
index 806436b..08f5ea7 100644
--- a/code-generation/types-base/src/main/java/org/apache/plc4x/plugins/codegenerator/types/definitions/TypeDefinition.java
+++ b/code-generation/types-base/src/main/java/org/apache/plc4x/plugins/codegenerator/types/definitions/TypeDefinition.java
@@ -25,6 +25,8 @@ public interface TypeDefinition {
 
     Argument[] getParserArguments();
 
+    String[] getTags();
+
     TypeDefinition getParentType();
 
 }
diff --git a/code-generation/types-base/src/main/java/org/apache/plc4x/plugins/codegenerator/types/fields/TaggedField.java b/code-generation/types-base/src/main/java/org/apache/plc4x/plugins/codegenerator/types/fields/TaggedField.java
new file mode 100644
index 0000000..53a80f1
--- /dev/null
+++ b/code-generation/types-base/src/main/java/org/apache/plc4x/plugins/codegenerator/types/fields/TaggedField.java
@@ -0,0 +1,25 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+*/
+package org.apache.plc4x.plugins.codegenerator.types.fields;
+
+public interface TaggedField {
+
+    String[] getTags();
+
+}