private Expression parseOgcCqlExpression(String sourceExpr) throws DataSourceException { return parseOgcCqlExpression(sourceExpr, ff); }
public void setTargetValue(String targetValue) { try { this.targetValue = parseOgcCqlExpression(targetValue, filterFactory); } catch (Exception exception) { throw new RuntimeException( String.format("Error parsing target value expression '%s'.", targetValue), exception); } }
/** * @param dto * @return Map<Name, Expression> with the values per qualified name (attribute name in the * mapping) * @throws DataSourceException */ private Map getClientProperties(org.geotools.data.complex.config.AttributeMapping dto) throws DataSourceException { if (dto.getClientProperties().size() == 0) { return Collections.EMPTY_MAP; } Map clientProperties = new HashMap(); for (Iterator it = dto.getClientProperties().entrySet().iterator(); it.hasNext(); ) { Map.Entry entry = (Map.Entry) it.next(); String name = (String) entry.getKey(); Name qName = Types.degloseName(name, namespaces); String cqlExpression = (String) entry.getValue(); final Expression expression = parseOgcCqlExpression(cqlExpression); clientProperties.put(qName, expression); } return clientProperties; }
public void setExpression(String expression) { try { this.expression = parseOgcCqlExpression(expression, filterFactory); } catch (Exception exception) { throw new RuntimeException( String.format("Error parsing target value expression '%s'.", expression), exception); } }
/** * Helper method that tries to build an expression from the provided string. * * @param expression text representation fo an expression * @return the built expression */ private Expression parseExpression(String expression) { try { return AppSchemaDataAccessConfigurator.parseOgcCqlExpression(expression, filterFactory); } catch (Exception exception) { throw new RuntimeException( String.format("Error parsing expression '%s'.", expression), exception); } }
? parseOgcCqlExpression(idExpr) : new AttributeExpressionImpl( idXpath, ? parseOgcCqlExpression(sourceExpr) : new AttributeExpressionImpl( inputXPath, Expression elementExpr = parseOgcCqlExpression(sourceElement); String sourceField = attDto.getLinkField(); StepList sourceFieldSteps = null;
/** * * @param dto * @return Map<Name, Expression> with the values per qualified name (attribute name in the * mapping) * @throws DataSourceException */ private Map getClientProperties(org.geotools.data.complex.config.AttributeMapping dto) throws DataSourceException { if (dto.getClientProperties().size() == 0) { return Collections.EMPTY_MAP; } Map clientProperties = new HashMap(); for (Iterator it = dto.getClientProperties().entrySet().iterator(); it.hasNext();) { Map.Entry entry = (Map.Entry) it.next(); String name = (String) entry.getKey(); Name qName = Types.degloseName(name, namespaces); String cqlExpression = (String) entry.getValue(); final Expression expression = parseOgcCqlExpression(cqlExpression); clientProperties.put(qName, expression); } return clientProperties; }
final Expression idExpression = (idXpath == null) ? parseOgcCqlExpression(idExpr) : new AttributeExpressionImpl(idXpath, new Hints( FeaturePropertyAccessorFactory.NAMESPACE_CONTEXT, this.namespaces)); sourceExpression = (inputXPath == null) ? parseOgcCqlExpression(sourceExpr) : new AttributeExpressionImpl(inputXPath, new Hints( FeaturePropertyAccessorFactory.NAMESPACE_CONTEXT, this.namespaces)); Expression elementExpr = parseOgcCqlExpression(sourceElement); String sourceField = attDto.getLinkField(); StepList sourceFieldSteps = null;