private Set<String> visitActionInsertFact(ActionInsertFact afl) { final Set<String> factTypes = new HashSet<String>(); factTypes.add(afl.getFactType()); return factTypes; }
private Set<String> visitActionInsertFact(ActionInsertFact afl) { final Set<String> factTypes = new HashSet<String>(); factTypes.add(afl.getFactType()); return factTypes; }
private Optional<String> getType(final RuleModel ruleModel, final ActionFieldList actionFieldList) { if (actionFieldList instanceof ActionInsertFact) { return Optional.of(((ActionInsertFact) actionFieldList).getFactType()); } else if (actionFieldList instanceof ActionSetField) { final String var = ((ActionSetField) actionFieldList).getVariable(); return Optional.ofNullable(ruleModel.getLHSBindingType(var)); } return Optional.empty(); } }
private Optional<String> getType(final RuleModel ruleModel, final ActionFieldList actionFieldList) { if (actionFieldList instanceof ActionInsertFact) { return Optional.of(((ActionInsertFact) actionFieldList).getFactType()); } else if (actionFieldList instanceof ActionSetField) { final String var = ((ActionSetField) actionFieldList).getVariable(); return Optional.ofNullable(ruleModel.getLHSBindingType(var)); } return Optional.empty(); } }
private void visitActionFieldList(final ActionInsertFact afl) { String fullyQualifiedClassName = getFullyQualifiedClassName(afl.getFactType()); addResourceReference(fullyQualifiedClassName, ResourceType.JAVA); }
private void visitActionFieldList(final ActionInsertFact afl) { String fullyQualifiedClassName = getFullyQualifiedClassName(afl.getFactType()); addResourceReference(fullyQualifiedClassName, ResourceType.JAVA); }
private String getTypeNameForBinding(final String binding) { if (model.getAllLHSVariables().contains(binding)) { return model.getLHSBindingType(binding); } else if (model.getAllRHSVariables().contains(binding)) { return model.getRHSBoundFact(binding).getFactType(); } return null; }
private String getTypeNameForBinding(final String binding) { if (model.getAllLHSVariables().contains(binding)) { return model.getLHSBindingType(binding); } else if (model.getAllRHSVariables().contains(binding)) { return model.getRHSBoundFact(binding).getFactType(); } return null; }
private void getRHSFacTypes() { for (String variable : model.getModel().getAllRHSVariables()) { factTypesByVariables.put(variable, model.getModel().getRHSBoundFact(variable).getFactType()); } }
private String getFactTypeFromRHS() { ActionInsertFact rhsBoundFact = modeller.getModel().getRHSBoundFact(model.getVariable()); if (rhsBoundFact != null) { return rhsBoundFact.getFactType(); } return null; }
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 String getFactTypeFromRHS() { ActionInsertFact rhsBoundFact = modeller.getModel().getRHSBoundFact(model.getVariable()); if (rhsBoundFact != null) { return rhsBoundFact.getFactType(); } return null; }
private void getRHSFacTypes() { for (String variable : model.getModel().getAllRHSVariables()) { factTypesByVariables.put(variable, model.getModel().getRHSBoundFact(variable).getFactType()); } }
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 String getFactType(String variable) { if (modeller.getModel().getRHSBoundFacts().contains(variable) == false) { return modeller.getModel().getLHSBindingType(variable); } else { return modeller.getModel().getRHSBoundFact(variable).getFactType(); } }
private String getFactType(String variable) { if (modeller.getModel().getRHSBoundFacts().contains(variable) == false) { return modeller.getModel().getLHSBindingType(variable); } else { return modeller.getModel().getRHSBoundFact(variable).getFactType(); } }
public void onChange(ChangeEvent event) { String fieldName = box.getItemText(box.getSelectedIndex()); String fieldType = oracle.getFieldType(model.getFactType(), fieldName); model.addFieldValue(new ActionFieldValue(fieldName, "", fieldType)); setModified(true); getModeller().refreshWidget(); popup.hide(); } });
public void onChange(ChangeEvent event) { String fieldName = box.getItemText(box.getSelectedIndex()); String fieldType = oracle.getFieldType(model.getFactType(), fieldName); model.addFieldValue(new ActionFieldValue(fieldName, "", fieldType)); setModified(true); getModeller().refreshWidget(); popup.hide(); } });
private String getVariableType() { String type; if (oracle.isGlobalVariable(this.model.getVariable())) { type = oracle.getGlobalVariable(this.model.getVariable()); } else { type = this.getModeller().getModel().getLHSBindingType(this.model.getVariable()); if (type == null) { type = this.getModeller().getModel().getRHSBoundFact(this.model.getVariable()).getFactType(); } } return type; }
private String getVariableType() { String type; if (oracle.isGlobalVariable(this.model.getVariable())) { type = oracle.getGlobalVariable(this.model.getVariable()); } else { type = this.getModeller().getModel().getLHSBindingType(this.model.getVariable()); if (type == null) { type = this.getModeller().getModel().getRHSBoundFact(this.model.getVariable()).getFactType(); } } return type; }