Changeset 22652
- Timestamp:
- 02/09/10 13:31:44 (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/mnw21/pathquery_refactor/intermine/api/main/src/org/intermine/api/template/TemplatePopulator.java
r22631 r22652 226 226 * @param template the template to constrain 227 227 * @param templateValue container for the value to set constraint to 228 * @throws PathException if a TemplateValue contains an invalid path 228 229 */ 229 230 protected static void setConstraint(TemplateQuery template, TemplateValue templateValue) … … 258 259 if (templateValue.getOperation().equals(ConstraintOp.IN) 259 260 || templateValue.getOperation().equals(ConstraintOp.NOT_IN)) { 260 newConstraint = new PathConstraintMultiValue(constraintPath.getNoConstraintsString(), 261 templateValue.getOperation(), Arrays.asList(templateValue.getValue().split(","))); 261 newConstraint = 262 new PathConstraintMultiValue(constraintPath.getNoConstraintsString(), 263 templateValue.getOperation(), 264 Arrays.asList(templateValue.getValue().split(","))); 262 265 } else { 263 266 newConstraint = … … 274 277 templateValue.getOperation()); 275 278 } else if (originalConstraint instanceof PathConstraintMultiValue) { 276 newConstraint = new PathConstraintMultiValue(constraintPath.getNoConstraintsString(), 277 templateValue.getOperation(), Arrays.asList(templateValue.getValue().split(","))); 279 newConstraint = 280 new PathConstraintMultiValue(constraintPath.getNoConstraintsString(), 281 templateValue.getOperation(), 282 Arrays.asList(templateValue.getValue().split(","))); 278 283 } 279 284 template.replaceConstraint(originalConstraint, newConstraint);
Note: See TracChangeset
for help on using the changeset viewer.
