/** * Factory to create a Constraint implementation from a set of elements. * * @param e0 The first statement constraint. * @param e1 The second statement constraint. * @param e2 The third statement constraint. */ public static Constraint newConstraint( ConstraintElement e0, ConstraintElement e1, ConstraintElement e2 ) { return newConstraint(e0, e1, e2, Variable.FROM); }
public static Constraint replace(Map<Variable,ValueElement> bindings, Constraint constraint) throws QueryException { return ConstraintFactory.newConstraint(replace(bindings, constraint.getElement(0)), replace(bindings, constraint.getElement(1)), replace(bindings, constraint.getElement(2)), replace(bindings, constraint.getModel())); }