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/08/30 07:16:14 UTC

[plc4x-build-tools] branch develop updated: - Added a "virtual" field type

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 1551f11  - Added a "virtual" field type
1551f11 is described below

commit 1551f110792f04732eb2ee0c90cc940777707ecb
Author: Christofer Dutz <ch...@c-ware.de>
AuthorDate: Fri Aug 30 09:16:06 2019 +0200

    - Added a "virtual" field type
---
 .../codegenerator/types/fields/VirtualField.java   | 31 ++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/code-generation/types-base/src/main/java/org/apache/plc4x/plugins/codegenerator/types/fields/VirtualField.java b/code-generation/types-base/src/main/java/org/apache/plc4x/plugins/codegenerator/types/fields/VirtualField.java
new file mode 100644
index 0000000..5cbda4b
--- /dev/null
+++ b/code-generation/types-base/src/main/java/org/apache/plc4x/plugins/codegenerator/types/fields/VirtualField.java
@@ -0,0 +1,31 @@
+/*
+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;
+
+import org.apache.plc4x.plugins.codegenerator.types.terms.Term;
+
+public interface VirtualField extends PropertyField {
+
+    default String getTypeName() {
+        return "virtual";
+    }
+
+    Term getValueExpression();
+
+}