private Widget fieldSelector(final ActionFieldValue val) { return new SmallLabel(val.getField()); }
private Widget fieldSelector(final ActionFieldValue val) { return new SmallLabel(val.getField()); }
private Widget fieldSelector(final ActionFieldValue val) { return new SmallLabel(val.getField()); }
private Widget fieldSelector(final ActionFieldValue val) { return new SmallLabel(val.getField()); }
private void extract(final RuleModel ruleModel, final ActionFieldList actionFieldList) { final Optional<String> type = getType(ruleModel, actionFieldList); type.ifPresent(t -> { final ActionFieldValue[] actionFieldValues = actionFieldList.getFieldValues(); for (ActionFieldValue actionFieldValue : actionFieldValues) { final List<String> fields = typeFields.computeIfAbsent(t, s -> new ArrayList<>()); fields.add(actionFieldValue.getField()); } }); }
private void extract(final RuleModel ruleModel, final ActionFieldList actionFieldList) { final Optional<String> type = getType(ruleModel, actionFieldList); type.ifPresent(t -> { final ActionFieldValue[] actionFieldValues = actionFieldList.getFieldValues(); for (ActionFieldValue actionFieldValue : actionFieldValues) { final List<String> fields = typeFields.computeIfAbsent(t, s -> new ArrayList<>()); fields.add(actionFieldValue.getField()); } }); }
DropDownData getDropDownData() { //Set applicable flags and reference data depending upon type if (DataType.TYPE_BOOLEAN.equals(value.getType())) { this.dropDownData = DropDownData.create(new String[]{"true", "false"}); } else { final Map<String, String> currentValueMap = FieldNatureUtil.toMap(this.values); this.dropDownData = oracle.getEnums(factType, value.getField(), currentValueMap); } return dropDownData; }
DropDownData getDropDownData() { //Set applicable flags and reference data depending upon type if (DataType.TYPE_BOOLEAN.equals(value.getType())) { this.dropDownData = DropDownData.create(new String[]{"true", "false"}); } else { final Map<String, String> currentValueMap = FieldNatureUtil.toMap(this.values); this.dropDownData = oracle.getEnums(factType, value.getField(), currentValueMap); } return dropDownData; }
private void visitActionFieldList(ActionInsertFact afl) { String factType = afl.getFactType(); for (ActionFieldValue afv : afl.getFieldValues()) { InterpolationVariable var = new InterpolationVariable(afv.getValue(), afv.getType(), factType, afv.getField()); if (afv.getNature() == FieldNatureType.TYPE_TEMPLATE && !vars.containsKey(var)) { vars.put(var, vars.size()); } } }
private void visitActionFieldList(ActionSetField afl) { String factType = model.getLHSBindingType(afl.getVariable()); for (ActionFieldValue afv : afl.getFieldValues()) { InterpolationVariable var = new InterpolationVariable(afv.getValue(), afv.getType(), factType, afv.getField()); if (afv.getNature() == FieldNatureType.TYPE_TEMPLATE && !vars.containsKey(var)) { vars.put(var, vars.size()); } } }
private void visitActionFieldList(ActionUpdateField afl) { String factType = model.getLHSBindingType(afl.getVariable()); for (ActionFieldValue afv : afl.getFieldValues()) { InterpolationVariable var = new InterpolationVariable(afv.getValue(), afv.getType(), factType, afv.getField()); if (afv.getNature() == FieldNatureType.TYPE_TEMPLATE && !vars.containsKey(var)) { vars.put(var, vars.size()); } } }
private void visitActionFieldList(final ActionInsertFact afl) { String factType = afl.getFactType(); for (ActionFieldValue afv : afl.getFieldValues()) { InterpolationVariable var = new InterpolationVariable(afv.getValue(), afv.getType(), factType, afv.getField()); if (afv.getNature() == FieldNatureType.TYPE_TEMPLATE && !vars.contains(var)) { vars.add(var); } else { hasNonTemplateOutput = true; } } }
private void visitActionFieldList(final ActionUpdateField afl) { String factType = model.getLHSBindingType(afl.getVariable()); for (ActionFieldValue afv : afl.getFieldValues()) { InterpolationVariable var = new InterpolationVariable(afv.getValue(), afv.getType(), factType, afv.getField()); if (afv.getNature() == FieldNatureType.TYPE_TEMPLATE && !vars.contains(var)) { vars.add(var); } else { hasNonTemplateOutput = true; } } }
private void visitActionFieldList(final ActionSetField afl) { String factType = model.getLHSBindingType(afl.getVariable()); for (ActionFieldValue afv : afl.getFieldValues()) { InterpolationVariable var = new InterpolationVariable(afv.getValue(), afv.getType(), factType, afv.getField()); if (afv.getNature() == FieldNatureType.TYPE_TEMPLATE && !vars.contains(var)) { vars.add(var); } else { hasNonTemplateOutput = true; } } }
private void visit(final String fullyQualifiedClassName, final ActionFieldValue afv) { ResourceReference resRef = addResourceReference(fullyQualifiedClassName, ResourceType.JAVA); resRef.addPartReference(afv.getField(), PartType.FIELD); addResourceReference(getFullyQualifiedClassName(afv.getType()), ResourceType.JAVA); }
private void visit(final String fullyQualifiedClassName, final ActionFieldValue afv) { ResourceReference resRef = addResourceReference(fullyQualifiedClassName, ResourceType.JAVA); resRef.addPartReference(afv.getField(), PartType.FIELD); addResourceReference(getFullyQualifiedClassName(afv.getType()), ResourceType.JAVA); }
private ActionFieldValue cloneActionFieldValue(ActionFieldValue afv) { ActionFieldValue clone = new ActionFieldValue(); clone.setField(afv.getField()); clone.setNature(afv.getNature()); clone.setType(afv.getType()); clone.setValue(afv.getValue()); return clone; }
private ActionFieldValue cloneActionFieldValue(ActionFieldValue afv) { ActionFieldValue clone = new ActionFieldValue(); clone.setField(afv.getField()); clone.setNature(afv.getNature()); clone.setType(afv.getType()); clone.setValue(afv.getValue()); return clone; }
private ActionInsertFact visitActionFieldList(ActionInsertFact afl) { ActionInsertFact clone = new ActionInsertFact(); clone.setFactType(afl.getFactType()); clone.setBoundName(afl.getBoundName()); for (ActionFieldValue afv : afl.getFieldValues()) { ActionFieldValue afvClone = new ActionFieldValue(); afvClone.setField(afv.getField()); afvClone.setNature(afv.getNature()); afvClone.setType(afv.getType()); afvClone.setValue(afv.getValue()); clone.addFieldValue(afvClone); } return clone; }
private ActionInsertFact visitActionFieldList(ActionInsertFact afl) { ActionInsertFact clone = new ActionInsertFact(); clone.setFactType(afl.getFactType()); clone.setBoundName(afl.getBoundName()); for (ActionFieldValue afv : afl.getFieldValues()) { ActionFieldValue afvClone = new ActionFieldValue(); afvClone.setField(afv.getField()); afvClone.setNature(afv.getNature()); afvClone.setType(afv.getType()); afvClone.setValue(afv.getValue()); clone.addFieldValue(afvClone); } return clone; }