private void addClasses(ActionFieldValue[] fieldValues) { for (ActionFieldValue afv : fieldValues) { String type = afv.getType(); List<ActionFieldValue> afvs = classes.get(type); if (afvs == null) { afvs = new ArrayList<ActionFieldValue>(); classes.put(type, afvs); } afvs.add(afv); } } }
protected void buildTemplateFieldValue(final ActionFieldValue fieldValue, final StringBuilder buf) { constraintValueBuilder.buildRHSFieldValue(buf, fieldValue.getType(), "@{removeDelimitingQuotes(" + fieldValue.getValue() + ")}"); }
protected void buildDefaultFieldValue(final ActionFieldValue fieldValue, final StringBuilder buf) { constraintValueBuilder.buildRHSFieldValue(buf, fieldValue.getType(), fieldValue.getValue()); }
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; }
@Override protected void buildTemplateFieldValue(final ActionFieldValue fieldValue, final StringBuilder buf) { constraintValueBuilder.buildRHSFieldValue(buf, fieldValue.getType(), rowDataProvider.getTemplateKeyValue(fieldValue.getValue())); }
ActionValueEditor actionValueEditor(final String factType, final ActionFieldValue actionFieldValue, final ActionFieldValue[] fieldValues, final boolean readOnly) { return new ActionValueEditor(factType, actionFieldValue, fieldValues, this.getModeller(), this.getEventBus(), actionFieldValue.getType(), readOnly); } }
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()); } } }
ActionValueEditor actionValueEditor(final String factType, final ActionFieldValue actionFieldValue, final ActionFieldValue[] fieldValues, final boolean readOnly) { return new ActionValueEditor(factType, actionFieldValue, fieldValues, this.getModeller(), this.getEventBus(), actionFieldValue.getType(), readOnly); } }
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 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 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 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; }