diff options
author | Michael Bauer <michael.mi.bauer@partner.bmw.de> | 2014-03-26 11:16:14 +0100 |
---|---|---|
committer | Michael Bauer <michael.mi.bauer@partner.bmw.de> | 2014-03-26 11:16:32 +0100 |
commit | bebfdf2c5d21edf6f418f686ec366188ed499ec2 (patch) | |
tree | 89d11b41ee853d3e58decb5a472b9fa67ac9d558 | |
parent | a99465a6846db79e68ef277cfd7244506c1f6d08 (diff) | |
download | genivi-common-api-runtime-bebfdf2c5d21edf6f418f686ec366188ed499ec2.tar.gz |
removing src-gen directory from .gitignore, because automated command-line build needs the generated .java files
3 files changed, 104 insertions, 1 deletions
@@ -1,5 +1,4 @@ */bin -*/src-gen */doc-gen */xtend-gen .DS_Store diff --git a/org.genivi.commonapi.core/src-gen/org/genivi/commonapi/core/deployment/DeploymentInterfacePropertyAccessor.java b/org.genivi.commonapi.core/src-gen/org/genivi/commonapi/core/deployment/DeploymentInterfacePropertyAccessor.java new file mode 100644 index 0000000..c0b418c --- /dev/null +++ b/org.genivi.commonapi.core/src-gen/org/genivi/commonapi/core/deployment/DeploymentInterfacePropertyAccessor.java @@ -0,0 +1,82 @@ +/******************************************************************************* +* This file has been generated by Franca's FDeployGenerator. +* Source: deployment spec 'org.genivi.commonapi.core.deployment.deployment' +*******************************************************************************/ +package org.genivi.commonapi.core.deployment; + +import org.franca.core.franca.FInterface; +import org.franca.core.franca.FEnumerationType; +import org.franca.deploymodel.core.FDeployedInterface; + +/** + * Accessor for deployment properties for 'org.genivi.commonapi.core.deployment.deployment' specification + */ +public class DeploymentInterfacePropertyAccessor +{ + + private FDeployedInterface target; + + public DeploymentInterfacePropertyAccessor (FDeployedInterface target) { + this.target = target; + } + + public enum DefaultEnumBackingType { + UInt8, UInt16, UInt32, UInt64, Int8, Int16, Int32, Int64 + } + public DefaultEnumBackingType getDefaultEnumBackingType (FInterface obj) { + String e = target.getEnum(obj, "DefaultEnumBackingType"); + if (e==null) return null; + return convertDefaultEnumBackingType(e); + } + private DefaultEnumBackingType convertDefaultEnumBackingType (String val) { + if (val.equals("UInt8")) + return DefaultEnumBackingType.UInt8; else + if (val.equals("UInt16")) + return DefaultEnumBackingType.UInt16; else + if (val.equals("UInt32")) + return DefaultEnumBackingType.UInt32; else + if (val.equals("UInt64")) + return DefaultEnumBackingType.UInt64; else + if (val.equals("Int8")) + return DefaultEnumBackingType.Int8; else + if (val.equals("Int16")) + return DefaultEnumBackingType.Int16; else + if (val.equals("Int32")) + return DefaultEnumBackingType.Int32; else + if (val.equals("Int64")) + return DefaultEnumBackingType.Int64; + return null; + } + + public enum EnumBackingType { + UseDefault, UInt8, UInt16, UInt32, UInt64, Int8, Int16, Int32, Int64 + } + public EnumBackingType getEnumBackingType (FEnumerationType obj) { + String e = target.getEnum(obj, "EnumBackingType"); + if (e==null) return null; + return convertEnumBackingType(e); + } + private EnumBackingType convertEnumBackingType (String val) { + if (val.equals("UseDefault")) + return EnumBackingType.UseDefault; else + if (val.equals("UInt8")) + return EnumBackingType.UInt8; else + if (val.equals("UInt16")) + return EnumBackingType.UInt16; else + if (val.equals("UInt32")) + return EnumBackingType.UInt32; else + if (val.equals("UInt64")) + return EnumBackingType.UInt64; else + if (val.equals("Int8")) + return EnumBackingType.Int8; else + if (val.equals("Int16")) + return EnumBackingType.Int16; else + if (val.equals("Int32")) + return EnumBackingType.Int32; else + if (val.equals("Int64")) + return EnumBackingType.Int64; + return null; + } + + +} diff --git a/org.genivi.commonapi.core/src-gen/org/genivi/commonapi/core/deployment/DeploymentProviderPropertyAccessor.java b/org.genivi.commonapi.core/src-gen/org/genivi/commonapi/core/deployment/DeploymentProviderPropertyAccessor.java new file mode 100644 index 0000000..790c745 --- /dev/null +++ b/org.genivi.commonapi.core/src-gen/org/genivi/commonapi/core/deployment/DeploymentProviderPropertyAccessor.java @@ -0,0 +1,22 @@ +/******************************************************************************* +* This file has been generated by Franca's FDeployGenerator. +* Source: deployment spec 'org.genivi.commonapi.core.deployment.deployment' +*******************************************************************************/ +package org.genivi.commonapi.core.deployment; + +import org.franca.deploymodel.core.FDeployedProvider; + +/** + * Accessor for deployment properties for 'org.genivi.commonapi.core.deployment.deployment' specification + */ +public class DeploymentProviderPropertyAccessor +{ + + private FDeployedProvider target; + + public DeploymentProviderPropertyAccessor (FDeployedProvider target) { + this.target = target; + } + + +} |