/** * Recieves a geometry from its child filter. * * @param geometry The geometry from the filter. * @throws RuntimeException if the filterFactory can't handle the geometry * @task REVISIT: can we throw another exception? */ public void geometry(Geometry geometry) throws RuntimeException { // Sends the geometry to the expression try { LOGGER.finer("got geometry: " + geometry); expressionFactory.geometry(geometry); if (expressionFactory.isReady()) { LOGGER.finer("expression factory made expression and sent " + "to filter factory"); filterFactory.expression(expressionFactory.create()); } } catch (IllegalFilterException ife) { LOGGER.finer("Had problems adding geometry: " + geometry.toString()); throw new RuntimeException("problem adding geometry to filter ", ife); } }
((MathExpressionImpl) curExprssn).setExpression1(expFactory.create()); currentState = "rightValue"; expFactory = new ExpressionSAXParser(schema); LOGGER.finer("just added left value: " + currentState); } else if (currentState.equals("rightValue")) { ((MathExpressionImpl) curExprssn).setExpression2(expFactory.create()); currentState = "complete"; expFactory = null; LOGGER.finer("just added right value: " + currentState); } else if (currentState.equals("accumulate")) { accumalationOfExpressions.add(expFactory.create()); expFactory = null;
filterFactory.expression(expressionFactory.create());
/** * Recieves a geometry from its child filter. * * @param geometry The geometry from the filter. * * @throws RuntimeException if the filterFactory can't handle the geometry * * @task REVISIT: can we throw another exception? */ public void geometry(Geometry geometry) throws RuntimeException { // Sends the geometry to the expression try { LOGGER.finer("got geometry: " + geometry); expressionFactory.geometry(geometry); if (expressionFactory.isReady()) { LOGGER.finer("expression factory made expression and sent " + "to filter factory"); filterFactory.expression(expressionFactory.create()); } } catch (IllegalFilterException ife) { LOGGER.finer("Had problems adding geometry: " + geometry.toString()); throw new RuntimeException("problem adding geometry to filter ", ife); } }
/** * Recieves a geometry from its child filter. * * @param geometry The geometry from the filter. * * @throws RuntimeException if the filterFactory can't handle the geometry * * @task REVISIT: can we throw another exception? */ public void geometry(Geometry geometry) throws RuntimeException { // Sends the geometry to the expression try { LOGGER.finer("got geometry: " + geometry); expressionFactory.geometry(geometry); if (expressionFactory.isReady()) { LOGGER.finer("expression factory made expression and sent " + "to filter factory"); filterFactory.expression(expressionFactory.create()); } } catch (IllegalFilterException ife) { LOGGER.finer("Had problems adding geometry: " + geometry.toString()); throw new RuntimeException("problem adding geometry to filter ", ife); } }
if (currentState.equals("leftValue")) { ((MathExpression) curExprssn).addLeftValue(expFactory .create()); currentState = "rightValue"; expFactory = new ExpressionSAXParser(schema); } else if (currentState.equals("rightValue")) { ((MathExpression) curExprssn).addRightValue(expFactory .create()); currentState = "complete"; expFactory = null; LOGGER.finer("just added right value: " + currentState); } else if (currentState.equals("accumulate")) { accumalationOfExpressions.add(expFactory.create()); expFactory = null;
if (currentState.equals("leftValue")) { ((MathExpression) curExprssn).addLeftValue(expFactory .create()); currentState = "rightValue"; expFactory = new ExpressionSAXParser(schema); } else if (currentState.equals("rightValue")) { ((MathExpression) curExprssn).addRightValue(expFactory .create()); currentState = "complete"; expFactory = null; LOGGER.finer("just added right value: " + currentState); } else if (currentState.equals("accumulate")) { accumalationOfExpressions.add(expFactory.create()); expFactory = null;
filterFactory.expression(expressionFactory.create());
filterFactory.expression(expressionFactory.create());