Created
July 17, 2020 08:19
-
-
Save tkobayas/bde48ea2ef76ab2f829fe0c66cd26fd2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class InputSet implements java.io.Serializable, org.kie.dmn.api.core.FEELPropertyAccessible { | |
public InputSet() { | |
} | |
@Override() | |
public org.kie.dmn.feel.util.EvalHelper.PropertyValueResult getFEELProperty(java.lang.String property) { | |
switch(property) { | |
case "MyPerson": | |
return org.kie.dmn.feel.util.EvalHelper.PropertyValueResult.ofValue(this.getMyPerson()); | |
case "myPerson": | |
return org.kie.dmn.feel.util.EvalHelper.PropertyValueResult.ofValue(this.getMyPerson()); | |
default: | |
return org.kie.dmn.feel.util.EvalHelper.PropertyValueResult.notDefined(); | |
} | |
} | |
@Override() | |
public void setFEELProperty(java.lang.String property, java.lang.Object value) { | |
switch(property) { | |
case "MyPerson": | |
this.setMyPerson((KIE__API__TYPECHECK__TYPESAFEhttps_58_47_47kiegroup_46org_47dmn_47__B321C9B1_45856E_4545DE_45B05D_455B4D4D301D37capitalLetter.TPerson) value); | |
return; | |
case "myPerson": | |
this.setMyPerson((KIE__API__TYPECHECK__TYPESAFEhttps_58_47_47kiegroup_46org_47dmn_47__B321C9B1_45856E_4545DE_45B05D_455B4D4D301D37capitalLetter.TPerson) value); | |
return; | |
} | |
} | |
@Override() | |
public void fromMap(java.util.Map<String, Object> values) { | |
{ | |
Object propertyValues = values.get("MyPerson"); | |
if (propertyValues != null) { | |
myPerson = new KIE__API__TYPECHECK__TYPESAFEhttps_58_47_47kiegroup_46org_47dmn_47__B321C9B1_45856E_4545DE_45B05D_455B4D4D301D37capitalLetter.TPerson(); | |
myPerson.fromMap((java.util.Map<String, Object>) propertyValues); | |
} | |
} | |
{ | |
Object propertyValues = values.get("myPerson"); | |
if (propertyValues != null) { | |
myPerson = new KIE__API__TYPECHECK__TYPESAFEhttps_58_47_47kiegroup_46org_47dmn_47__B321C9B1_45856E_4545DE_45B05D_455B4D4D301D37capitalLetter.TPerson(); | |
myPerson.fromMap((java.util.Map<String, Object>) propertyValues); | |
} | |
} | |
} | |
@Override() | |
public void fromContextMap(java.util.Map<String, Object> values) { | |
{ | |
Object propertyValues = values.get("MyPerson"); | |
if (propertyValues != null) { | |
if (propertyValues instanceof KIE__API__TYPECHECK__TYPESAFEhttps_58_47_47kiegroup_46org_47dmn_47__B321C9B1_45856E_4545DE_45B05D_455B4D4D301D37capitalLetter.TPerson) { | |
myPerson = (KIE__API__TYPECHECK__TYPESAFEhttps_58_47_47kiegroup_46org_47dmn_47__B321C9B1_45856E_4545DE_45B05D_455B4D4D301D37capitalLetter.TPerson) propertyValues; | |
} else { | |
myPerson = new KIE__API__TYPECHECK__TYPESAFEhttps_58_47_47kiegroup_46org_47dmn_47__B321C9B1_45856E_4545DE_45B05D_455B4D4D301D37capitalLetter.TPerson(); | |
myPerson.fromMap((java.util.Map<String, Object>) propertyValues); | |
} | |
} | |
} | |
{ | |
Object propertyValues = values.get("myPerson"); | |
if (propertyValues != null) { | |
if (propertyValues instanceof KIE__API__TYPECHECK__TYPESAFEhttps_58_47_47kiegroup_46org_47dmn_47__B321C9B1_45856E_4545DE_45B05D_455B4D4D301D37capitalLetter.TPerson) { | |
myPerson = (KIE__API__TYPECHECK__TYPESAFEhttps_58_47_47kiegroup_46org_47dmn_47__B321C9B1_45856E_4545DE_45B05D_455B4D4D301D37capitalLetter.TPerson) propertyValues; | |
} else { | |
myPerson = new KIE__API__TYPECHECK__TYPESAFEhttps_58_47_47kiegroup_46org_47dmn_47__B321C9B1_45856E_4545DE_45B05D_455B4D4D301D37capitalLetter.TPerson(); | |
myPerson.fromMap((java.util.Map<String, Object>) propertyValues); | |
} | |
} | |
} | |
} | |
@Override() | |
public java.util.Map<String, Object> allFEELProperties() { | |
java.util.Map<String, Object> result = new java.util.LinkedHashMap<>(); | |
{ | |
result.put("MyPerson", this.getMyPerson()); | |
result.put("myPerson", this.getMyPerson()); | |
} | |
return result; | |
} | |
private KIE__API__TYPECHECK__TYPESAFEhttps_58_47_47kiegroup_46org_47dmn_47__B321C9B1_45856E_4545DE_45B05D_455B4D4D301D37capitalLetter.TPerson myPerson; | |
public void setMyPerson(KIE__API__TYPECHECK__TYPESAFEhttps_58_47_47kiegroup_46org_47dmn_47__B321C9B1_45856E_4545DE_45B05D_455B4D4D301D37capitalLetter.TPerson myPerson) { | |
this.myPerson = myPerson; | |
} | |
@org.kie.dmn.feel.lang.FEELProperty(value = "MyPerson") | |
public KIE__API__TYPECHECK__TYPESAFEhttps_58_47_47kiegroup_46org_47dmn_47__B321C9B1_45856E_4545DE_45B05D_455B4D4D301D37capitalLetter.TPerson getMyPerson() { | |
return myPerson; | |
} | |
private KIE__API__TYPECHECK__TYPESAFEhttps_58_47_47kiegroup_46org_47dmn_47__B321C9B1_45856E_4545DE_45B05D_455B4D4D301D37capitalLetter.TPerson myPerson; | |
public void setMyPerson(KIE__API__TYPECHECK__TYPESAFEhttps_58_47_47kiegroup_46org_47dmn_47__B321C9B1_45856E_4545DE_45B05D_455B4D4D301D37capitalLetter.TPerson myPerson) { | |
this.myPerson = myPerson; | |
} | |
@org.kie.dmn.feel.lang.FEELProperty(value = "myPerson") | |
public KIE__API__TYPECHECK__TYPESAFEhttps_58_47_47kiegroup_46org_47dmn_47__B321C9B1_45856E_4545DE_45B05D_455B4D4D301D37capitalLetter.TPerson getMyPerson() { | |
return myPerson; | |
} | |
public InputSet(KIE__API__TYPECHECK__TYPESAFEhttps_58_47_47kiegroup_46org_47dmn_47__B321C9B1_45856E_4545DE_45B05D_455B4D4D301D37capitalLetter.TPerson myPerson, KIE__API__TYPECHECK__TYPESAFEhttps_58_47_47kiegroup_46org_47dmn_47__B321C9B1_45856E_4545DE_45B05D_455B4D4D301D37capitalLetter.TPerson myPerson) { | |
super(); | |
this.myPerson = myPerson; | |
this.myPerson = myPerson; | |
} | |
@Override() | |
public String toString() { | |
return "InputSet" + "( " + "myPerson=" + myPerson + ", " + "myPerson=" + myPerson + " )"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment