/** Sets the left,lower, or first expression. */ public void setLowerBoundary(org.opengis.filter.expression.Expression lowerBounds) { setExpression1(lowerBounds); }
/** * Sets the left,lower, or first expression. */ public void setLowerBoundary(org.opengis.filter.expression.Expression lowerBounds) { setExpression1(lowerBounds); }
/** * Sets the left,lower, or first expression. */ public void setLowerBoundary(org.opengis.filter.expression.Expression lowerBounds) { setExpression1(lowerBounds); }
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)); }
SimpleFeatureType schema = ftb.buildFeatureType(); a.setExpression1(new LiteralExpressionImpl(new Double(5))); a.setExpression2(new LiteralExpressionImpl(new Double(15))); a.setExpression(new AttributeExpressionImpl(schema, "value"));