/** * Sets the values to be compared as between the left and right values. * * @param middleValue The expression to be compared. * @deprecated use {@link #setExpression(org.opengis.filter.expression.Expression)} */ public final void addMiddleValue(Expression middleValue) { setExpression(middleValue); }
public void testBetweenFilter() throws IllegalFilterException { BetweenFilterImpl bFilter1 = new BetweenFilterImpl(); BetweenFilterImpl bFilter2 = new BetweenFilterImpl(); LiteralExpressionImpl testLit1 = new LiteralExpressionImpl(Integer.valueOf(55)); LiteralExpressionImpl testLit2 = new LiteralExpressionImpl(Integer.valueOf(55)); testExp1 = new LiteralExpressionImpl(Integer.valueOf(45)); testExp2 = new LiteralExpressionImpl(Integer.valueOf(45)); testExp3 = new AttributeExpressionImpl(testSchema, "testInteger"); testExp4 = new AttributeExpressionImpl(testSchema, "testInteger"); bFilter1.setExpression1(testExp1); bFilter2.setExpression1(testExp2); bFilter1.setExpression(testExp3); bFilter2.setExpression(testExp4); bFilter1.setExpression2(testLit1); bFilter2.setExpression2(testLit2); assertTrue(bFilter2.equals(bFilter1)); tFilter1 = ff.equals( org.opengis.filter.expression.Expression.NIL, org.opengis.filter.expression.Expression.NIL); assertTrue(!bFilter2.equals(tFilter1)); bFilter2.setExpression2(new LiteralExpressionImpl(Integer.valueOf(65))); assertTrue(!bFilter2.equals(bFilter1)); }
a.setExpression(new AttributeExpressionImpl(schema, "value"));
((BetweenFilterImpl) curFilter).setExpression(expression); curState = "LowerBoundary"; } else if (curState.equals("LowerBoundary")) {
/** * Sets the values to be compared as between the left and right values. * * @param middleValue The expression to be compared. * * @deprecated use {@link #setExpression(org.opengis.filter.expression.Expression)} */ public final void addMiddleValue(Expression middleValue) { setExpression(middleValue); }
/** * Sets the values to be compared as between the left and right values. * * @param middleValue The expression to be compared. * * @deprecated use {@link #setExpression(org.opengis.filter.expression.Expression)} */ public final void addMiddleValue(Expression middleValue) { setExpression(middleValue); }