Package org.opengis.filter.expression

Examples of org.opengis.filter.expression.PropertyName.accept()


    }
   
    @Test
    public void testPropertyName() throws Exception {
        PropertyName ae = ff.property("/wq_plus/measurement/result");
        List unrolled = (List) ae.accept(visitor, null);
        assertNotNull(unrolled);
        assertEquals(1, unrolled.size());

        Expression unmappedExpr = (Expression) unrolled.get(0);
        assertTrue(unmappedExpr instanceof PropertyName);
View Full Code Here


        FeatureTypeMapping mapping = createSampleDerivedAttributeMappings();
        targetDescriptor = mapping.getTargetFeature();

        visitor = new UnmappingFilterVisitor(mapping);
        attExp = ff.property("areaOfInfluence");
        List unrolledExpressions = (List) attExp.accept(visitor, null);

        assertNotNull(unrolledExpressions);
        assertEquals(1, unrolledExpressions.size());

        unmappedExpr = (Expression) unrolledExpressions.get(0);
View Full Code Here

        String xpathExpression = "sa:shape/geo:LineByVector/geo:origin/@xlink:href";
        PropertyName propNameExpression = ff.property(xpathExpression);

        visitor = new UnmappingFilterVisitor(mapping);

        List /* <Expression> */unrolled = (List) propNameExpression.accept(visitor, null);
        assertNotNull(unrolled);
        assertEquals(1, unrolled.size());
        assertTrue(unrolled.get(0) instanceof Expression);
    }

View Full Code Here

        FilterFactory2 ff = new FilterFactoryImplNamespaceAware(namespaces);

        String xpathExpression = "@gml:id";
        PropertyName propNameExpression = ff.property(xpathExpression);

        List /* <Expression> */unrolled = (List) propNameExpression.accept(visitor, null);
        assertNotNull(unrolled);
        assertEquals(1, unrolled.size());
        assertTrue(unrolled.get(0) instanceof Expression);
        assertEquals(((Expression) unrolled.get(0)).toString(), "strConcat([bh.], [BGS_ID])");

View Full Code Here

        assertEquals(((Expression) unrolled.get(0)).toString(), "strConcat([bh.], [BGS_ID])");

        xpathExpression = "/@gml:id";
        propNameExpression = ff.property(xpathExpression);

        unrolled = (List) propNameExpression.accept(visitor, null);
        assertNotNull(unrolled);
        assertEquals(1, unrolled.size());
        assertTrue(unrolled.get(0) instanceof Expression);
        assertEquals(((Expression) unrolled.get(0)).toString(), "strConcat([bh.], [BGS_ID])");
View Full Code Here

        assertEquals(((Expression) unrolled.get(0)).toString(), "strConcat([bh.], [BGS_ID])");

        xpathExpression = "xmml:Borehole/@gml:id";
        propNameExpression = ff.property(xpathExpression);

        unrolled = (List) propNameExpression.accept(visitor, null);
        assertNotNull(unrolled);
        assertEquals(1, unrolled.size());
        assertTrue(unrolled.get(0) instanceof Expression);
        assertEquals(((Expression) unrolled.get(0)).toString(), "strConcat([bh.], [BGS_ID])");
    }
View Full Code Here

    public Object visit(PropertyIsBetween filter, Object extraData) {
        checkExpressionIsProperty(filter.getExpression());
        StringWriter output = asStringWriter(extraData);
        ExpressionToSolr visitor = new ExpressionToSolr();
        PropertyName propertyName = (PropertyName) filter.getExpression();
        propertyName.accept(visitor, output);
        output.append(":[");
        filter.getLowerBoundary().accept(visitor, output);
        output.append(" TO ");
        filter.getUpperBoundary().accept(visitor, output);
        output.append("]");
View Full Code Here

        Expression[] expr = binaryFilterVisitorNormalizer(filter.getExpression1(),
                filter.getExpression2());
        StringWriter output = asStringWriter(extraData);
        ExpressionToSolr visitor = new ExpressionToSolr();
        PropertyName propertyName = (PropertyName) expr[0];
        propertyName.accept(visitor, output);
        output.append(":{");
        expr[1].accept(visitor, output);
        output.append(" TO *}");
        return output;
    }
View Full Code Here

        Expression[] expr = binaryFilterVisitorNormalizer(filter.getExpression1(),
                filter.getExpression2());
        StringWriter output = asStringWriter(extraData);
        ExpressionToSolr visitor = new ExpressionToSolr();
        PropertyName propertyName = (PropertyName) expr[0];
        propertyName.accept(visitor, output);
        output.append(":[");
        expr[1].accept(visitor, output);
        output.append(" TO *]");
        return output;
    }
View Full Code Here

                filter.getExpression2());
        checkExpressionIsProperty(filter.getExpression1());
        StringWriter output = asStringWriter(extraData);
        ExpressionToSolr visitor = new ExpressionToSolr();
        PropertyName propertyName = (PropertyName) expr[0];
        propertyName.accept(visitor, output);
        output.append(":{* TO ");
        expr[1].accept(visitor, output);
        output.append("}");
        return output;
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.