@Override public List<String> getBoundVariablesInScope(BaseSingleFieldConstraint con) { return model.getBoundVariablesInScope(con); }
@Override public List<String> getBoundVariablesInScope(BaseSingleFieldConstraint con) { return model.getBoundVariablesInScope(con); }
@Override public List<String> getBoundVariablesInScope(final BaseSingleFieldConstraint con) { final Set<String> variables = new HashSet<>(); for (CompositeColumn<? extends BaseColumn> col : dtable.getConditions()) { if (col instanceof Pattern52) { final Pattern52 p = (Pattern52) col; if (p.isBound()) { variables.add(p.getBoundName()); } for (ConditionCol52 cc : p.getChildColumns()) { if (cc.isBound()) { variables.add(cc.getBinding()); } } } else if (col instanceof BRLConditionColumn) { //Delegate to super class's implementation final RuleModel rm = new RuleModel(); final BRLConditionColumn brl = (BRLConditionColumn) col; rm.lhs = brl.getDefinition().toArray(new IPattern[brl.getDefinition().size()]); variables.addAll(rm.getBoundVariablesInScope(con)); } } variables.addAll(super.getBoundVariablesInScope(con)); return new ArrayList<>(variables); }
box.addItem(GuidedRuleEditorResources.CONSTANTS.Choose()); List<String> bindingsInScope = this.model.getBoundVariablesInScope(this.constraint);
box.addItem(GuidedRuleEditorResources.CONSTANTS.Choose()); List<String> bindingsInScope = this.model.getBoundVariablesInScope(this.constraint);
List<String> bindingsInScope = this.model.getBoundVariablesInScope(this.constraint); if (bindingsInScope.size() > 0 || DataType.TYPE_COLLECTION.equals(this.fieldType)) {
List<String> bindingsInScope = this.model.getBoundVariablesInScope(this.constraint); if (bindingsInScope.size() > 0 || DataType.TYPE_COLLECTION.equals(this.fieldType)) {