/** * Gets the left or first expression. * * @throws IllegalFilterException */ public void setExpression1(org.opengis.filter.expression.Expression expression) { if (isGeometryExpression(Filters.getExpressionType(expression))) { throw new IllegalFilterException( "Attempted to add Geometry expression to math expression."); } this.leftValue = expression; }
/** * Gets the second expression. * * @throws IllegalFilterException */ public void setExpression2(org.opengis.filter.expression.Expression expression) { // Check to see if this is a valid math expression before adding. if (isGeometryExpression(Filters.getExpressionType(expression))) { throw new IllegalFilterException( "Attempted to add Geometry expression to math expression."); } this.rightValue = expression; }
/** * * Gets the left or first expression. * * @throws IllegalFilterException */ public void setExpression1(org.opengis.filter.expression.Expression expression) { Expression leftValue = (Expression)expression; if (isGeometryExpression(leftValue.getType()) ) { throw new IllegalFilterException( "Attempted to add Geometry expression to math expression."); } this.leftValue = leftValue; }
/** * Gets the second expression. * * @throws IllegalFilterException */ public void setExpression2(org.opengis.filter.expression.Expression expression) { Expression rightValue = (Expression)expression; //Check to see if this is a valid math expression before adding. if (isGeometryExpression(rightValue.getType()) ) { throw new IllegalFilterException( "Attempted to add Geometry expression to math expression."); } this.rightValue = rightValue; }
/** * * Gets the left or first expression. * * @throws IllegalFilterException */ public void setExpression1(org.opengis.filter.expression.Expression expression) { Expression leftValue = (Expression)expression; if (isGeometryExpression(leftValue.getType()) ) { throw new IllegalFilterException( "Attempted to add Geometry expression to math expression."); } this.leftValue = leftValue; }
/** * Gets the second expression. * * @throws IllegalFilterException */ public void setExpression2(org.opengis.filter.expression.Expression expression) { Expression rightValue = (Expression)expression; //Check to see if this is a valid math expression before adding. if (isGeometryExpression(rightValue.getType()) ) { throw new IllegalFilterException( "Attempted to add Geometry expression to math expression."); } this.rightValue = rightValue; }