Skip to content

Instantly share code, notes, and snippets.

@tkobayas
Created July 30, 2020 06:22
Show Gist options
  • Save tkobayas/1f275706e68871072b062a04d9bb1666 to your computer and use it in GitHub Desktop.
Save tkobayas/1f275706e68871072b062a04d9bb1666 to your computer and use it in GitHub Desktop.
/*
This file was automatically generated by the Drools DMN open source engine Strongly Typed facility.
Do not modify this file, as any modifications will be lost when invoking the facility again.
Do not rely on the generated class(es) implementation, as the actual implementations may change.
Generated on: 2020-07-30T13:51:22.861+09:00[Asia/Tokyo]
*/
package KIE__API__TYPECHECK__TYPESAFEhttp_58_47_47www_46trisotech_46com_47definitions_47__69430b3e_4517b8_45430d_45b760_45c505bf6469f9dateTime_32Table_3258;
/**
* A representation of all the InputData and other DRG Requirement of the whole DMN 'dateTime Table 58' inputs.<br/>
* <br/>
* This has been automatically generated from the following DMN asset.<br/>
* DMN namespace: http://www.trisotech.com/definitions/_69430b3e-17b8-430d-b760-c505bf6469f9<br/>
* DMN name: dateTime Table 58<br/>
*
* @implNote
* This file was automatically generated by the Drools DMN open source engine Strongly Typed facility.
* Do not modify this file, as any modifications will be lost when invoking the facility again.
* Do not rely on the generated class(es) implementation, as the actual implementations may change.
* Generated on: 2020-07-30T13:51:22.861+09:00[Asia/Tokyo]
*
* <br/>
*/
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 "dateTimeString":
return org.kie.dmn.feel.util.EvalHelper.PropertyValueResult.ofValue(this.getDateTimeString());
case "Timezone":
return org.kie.dmn.feel.util.EvalHelper.PropertyValueResult.ofValue(this.getTimezone());
case "oneHour":
return org.kie.dmn.feel.util.EvalHelper.PropertyValueResult.ofValue(this.getOneHour());
case "Month":
return org.kie.dmn.feel.util.EvalHelper.PropertyValueResult.ofValue(this.getMonth());
case "Year":
return org.kie.dmn.feel.util.EvalHelper.PropertyValueResult.ofValue(this.getYear());
case "Hours":
return org.kie.dmn.feel.util.EvalHelper.PropertyValueResult.ofValue(this.getHours());
case "timeString":
return org.kie.dmn.feel.util.EvalHelper.PropertyValueResult.ofValue(this.getTimeString());
case "dateString":
return org.kie.dmn.feel.util.EvalHelper.PropertyValueResult.ofValue(this.getDateString());
case "Seconds":
return org.kie.dmn.feel.util.EvalHelper.PropertyValueResult.ofValue(this.getSeconds());
case "Day":
return org.kie.dmn.feel.util.EvalHelper.PropertyValueResult.ofValue(this.getDay());
case "Minutes":
return org.kie.dmn.feel.util.EvalHelper.PropertyValueResult.ofValue(this.getMinutes());
case "durationString":
return org.kie.dmn.feel.util.EvalHelper.PropertyValueResult.ofValue(this.getDurationString());
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 "dateTimeString":
this.setDateTimeString((java.lang.String) value);
return;
case "Timezone":
this.setTimezone((java.lang.String) value);
return;
case "oneHour":
this.setOneHour((java.time.temporal.TemporalAmount) value);
return;
case "Month":
this.setMonth((java.lang.Number) value);
return;
case "Year":
this.setYear((java.lang.Number) value);
return;
case "Hours":
this.setHours((java.lang.Number) value);
return;
case "timeString":
this.setTimeString((java.lang.String) value);
return;
case "dateString":
this.setDateString((java.lang.String) value);
return;
case "Seconds":
this.setSeconds((java.lang.Number) value);
return;
case "Day":
this.setDay((java.lang.Number) value);
return;
case "Minutes":
this.setMinutes((java.lang.Number) value);
return;
case "durationString":
this.setDurationString((java.lang.String) value);
return;
}
}
@Override()
public void fromMap(java.util.Map<String, Object> values) {
{
Object propertyValues = values.get("dateTimeString");
if (propertyValues != null) {
dateTimeString = (java.lang.String) propertyValues;
}
}
{
Object propertyValues = values.get("Timezone");
if (propertyValues != null) {
timezone = (java.lang.String) propertyValues;
}
}
{
Object propertyValues = values.get("oneHour");
if (propertyValues != null) {
oneHour = (java.time.temporal.TemporalAmount) propertyValues;
}
}
{
Object propertyValues = values.get("Month");
if (propertyValues != null) {
month = (java.lang.Number) propertyValues;
}
}
{
Object propertyValues = values.get("Year");
if (propertyValues != null) {
year = (java.lang.Number) propertyValues;
}
}
{
Object propertyValues = values.get("Hours");
if (propertyValues != null) {
hours = (java.lang.Number) propertyValues;
}
}
{
Object propertyValues = values.get("timeString");
if (propertyValues != null) {
timeString = (java.lang.String) propertyValues;
}
}
{
Object propertyValues = values.get("dateString");
if (propertyValues != null) {
dateString = (java.lang.String) propertyValues;
}
}
{
Object propertyValues = values.get("Seconds");
if (propertyValues != null) {
seconds = (java.lang.Number) propertyValues;
}
}
{
Object propertyValues = values.get("Day");
if (propertyValues != null) {
day = (java.lang.Number) propertyValues;
}
}
{
Object propertyValues = values.get("Minutes");
if (propertyValues != null) {
minutes = (java.lang.Number) propertyValues;
}
}
{
Object propertyValues = values.get("durationString");
if (propertyValues != null) {
durationString = (java.lang.String) propertyValues;
}
}
}
@Override()
public java.util.Map<String, Object> allFEELProperties() {
java.util.Map<String, Object> result = new java.util.LinkedHashMap<>();
{
result.put("dateTimeString", this.getDateTimeString());
result.put("Timezone", this.getTimezone());
result.put("oneHour", this.getOneHour());
result.put("Month", this.getMonth());
result.put("Year", this.getYear());
result.put("Hours", this.getHours());
result.put("timeString", this.getTimeString());
result.put("dateString", this.getDateString());
result.put("Seconds", this.getSeconds());
result.put("Day", this.getDay());
result.put("Minutes", this.getMinutes());
result.put("durationString", this.getDurationString());
}
return result;
}
/**
* DMNType{ http://www.omg.org/spec/FEEL/20140401 : string }
*/
private java.lang.String dateTimeString;
public void setDateTimeString(java.lang.String dateTimeString) {
this.dateTimeString = dateTimeString;
}
@org.kie.dmn.feel.lang.FEELProperty(value = "dateTimeString")
public java.lang.String getDateTimeString() {
return dateTimeString;
}
/**
* DMNType{ http://www.omg.org/spec/FEEL/20140401 : string }
*/
private java.lang.String timezone;
public void setTimezone(java.lang.String timezone) {
this.timezone = timezone;
}
@org.kie.dmn.feel.lang.FEELProperty(value = "Timezone")
public java.lang.String getTimezone() {
return timezone;
}
/**
* DMNType{ http://www.omg.org/spec/FEEL/20140401 : days and time duration }
*/
private java.time.temporal.TemporalAmount oneHour;
public void setOneHour(java.time.temporal.TemporalAmount oneHour) {
this.oneHour = oneHour;
}
@org.kie.dmn.feel.lang.FEELProperty(value = "oneHour")
public java.time.temporal.TemporalAmount getOneHour() {
return oneHour;
}
/**
* DMNType{ http://www.omg.org/spec/FEEL/20140401 : number }
*/
private java.lang.Number month;
public void setMonth(java.lang.Number month) {
this.month = month;
}
@org.kie.dmn.feel.lang.FEELProperty(value = "Month")
public java.lang.Number getMonth() {
return month;
}
/**
* DMNType{ http://www.omg.org/spec/FEEL/20140401 : number }
*/
private java.lang.Number year;
public void setYear(java.lang.Number year) {
this.year = year;
}
@org.kie.dmn.feel.lang.FEELProperty(value = "Year")
public java.lang.Number getYear() {
return year;
}
/**
* DMNType{ http://www.omg.org/spec/FEEL/20140401 : number }
*/
private java.lang.Number hours;
public void setHours(java.lang.Number hours) {
this.hours = hours;
}
@org.kie.dmn.feel.lang.FEELProperty(value = "Hours")
public java.lang.Number getHours() {
return hours;
}
/**
* DMNType{ http://www.omg.org/spec/FEEL/20140401 : string }
*/
private java.lang.String timeString;
public void setTimeString(java.lang.String timeString) {
this.timeString = timeString;
}
@org.kie.dmn.feel.lang.FEELProperty(value = "timeString")
public java.lang.String getTimeString() {
return timeString;
}
/**
* DMNType{ http://www.omg.org/spec/FEEL/20140401 : string }
*/
private java.lang.String dateString;
public void setDateString(java.lang.String dateString) {
this.dateString = dateString;
}
@org.kie.dmn.feel.lang.FEELProperty(value = "dateString")
public java.lang.String getDateString() {
return dateString;
}
/**
* DMNType{ http://www.omg.org/spec/FEEL/20140401 : number }
*/
private java.lang.Number seconds;
public void setSeconds(java.lang.Number seconds) {
this.seconds = seconds;
}
@org.kie.dmn.feel.lang.FEELProperty(value = "Seconds")
public java.lang.Number getSeconds() {
return seconds;
}
/**
* DMNType{ http://www.omg.org/spec/FEEL/20140401 : number }
*/
private java.lang.Number day;
public void setDay(java.lang.Number day) {
this.day = day;
}
@org.kie.dmn.feel.lang.FEELProperty(value = "Day")
public java.lang.Number getDay() {
return day;
}
/**
* DMNType{ http://www.omg.org/spec/FEEL/20140401 : number }
*/
private java.lang.Number minutes;
public void setMinutes(java.lang.Number minutes) {
this.minutes = minutes;
}
@org.kie.dmn.feel.lang.FEELProperty(value = "Minutes")
public java.lang.Number getMinutes() {
return minutes;
}
/**
* DMNType{ http://www.omg.org/spec/FEEL/20140401 : string }
*/
private java.lang.String durationString;
public void setDurationString(java.lang.String durationString) {
this.durationString = durationString;
}
@org.kie.dmn.feel.lang.FEELProperty(value = "durationString")
public java.lang.String getDurationString() {
return durationString;
}
public InputSet(java.lang.String dateTimeString, java.lang.String timezone, java.time.temporal.TemporalAmount oneHour, java.lang.Number month, java.lang.Number year, java.lang.Number hours, java.lang.String timeString, java.lang.String dateString, java.lang.Number seconds, java.lang.Number day, java.lang.Number minutes, java.lang.String durationString) {
super();
this.dateTimeString = dateTimeString;
this.timezone = timezone;
this.oneHour = oneHour;
this.month = month;
this.year = year;
this.hours = hours;
this.timeString = timeString;
this.dateString = dateString;
this.seconds = seconds;
this.day = day;
this.minutes = minutes;
this.durationString = durationString;
}
@Override()
public String toString() {
return "InputSet" + "( " + "dateTimeString=" + dateTimeString + ", " + "timezone=" + timezone + ", " + "oneHour=" + oneHour + ", " + "month=" + month + ", " + "year=" + year + ", " + "hours=" + hours + ", " + "timeString=" + timeString + ", " + "dateString=" + dateString + ", " + "seconds=" + seconds + ", " + "day=" + day + ", " + "minutes=" + minutes + ", " + "durationString=" + durationString + " )";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment