Examples of FilterElement


Examples of org.geotools.xml.filter.FilterSchema.FilterElement

            if( value instanceof BinaryLogicOperator){
                BinaryLogicOperator lf = (BinaryLogicOperator) value;
   
                switch ( Filters.getFilterType( lf )) {
                case LOGIC_AND:
                    BinaryLogicOpType.getInstance().encode(new FilterElement(
                            "And", BinaryLogicOpType.getInstance(), element),
                        value, output, hints);
   
                    return;
   
                case LOGIC_OR:
   
                    BinaryLogicOpType.getInstance().encode(new FilterElement("Or",
                            BinaryLogicOpType.getInstance(), element), value,
                        output, hints);
   
                    return;
                }
            }
            else if ( value instanceof Not){
                Not lf = (Not) value;
                UnaryLogicOpType.getInstance().encode(new FilterElement("Not",
                        UnaryLogicOpType.getInstance(), element), value,
                    output, hints);
                return;
            }
View Full Code Here

Examples of org.geotools.xml.filter.FilterSchema.FilterElement

            return instance;
        }

        private static Element[] elems = loadE();
        private static Element[] loadE(){
            Element exp = new FilterElement("expression",
                    ExpressionType.getInstance()) {
                public boolean isAbstract() {
                    return true;
                }
            };
            return new Element[]{
                new FilterElement("PropertyName",PropertyNameType.getInstance(),exp){
                    public int getMaxOccurs(){return ElementGrouping.UNBOUNDED;}
              }
            };
        }
View Full Code Here

Examples of org.geotools.xml.filter.FilterSchema.FilterElement

            case ATTRIBUTE_DOUBLE:
            case ATTRIBUTE_GEOMETRY:
            case ATTRIBUTE_INTEGER:
            case ATTRIBUTE_STRING:
            case ATTRIBUTE_UNDECLARED:
                PropertyNameType.getInstance().encode(new FilterElement(
                        "PropertyName", PropertyNameType.getInstance()), e,
                    output, hints);

                return;

            case FUNCTION:
                FunctionType.getInstance().encode((element != null) ? element
                                                                    : new FilterElement(
                        "Function", FunctionType.getInstance()), e, output,
                    hints);

                return;

            case LITERAL_DOUBLE:
            case LITERAL_GEOMETRY:
            case LITERAL_INTEGER:
            case LITERAL_STRING:
                LiteralType.getInstance().encode((element != null) ? element
                                                                   : new FilterElement(
                        "Literal", LiteralType.getInstance()), e, output, hints);

                return;

            case MATH_ADD:
                BinaryOperatorType.getInstance().encode((element != null)
                    ? element
                    : new FilterElement("Add", BinaryOperatorType.getInstance()),
                    e, output, hints);

                return;

            case MATH_DIVIDE:
                BinaryOperatorType.getInstance().encode((element != null)
                    ? element
                    : new FilterElement("Div", BinaryOperatorType.getInstance()),
                    e, output, hints);

                return;

            case MATH_MULTIPLY:
                BinaryOperatorType.getInstance().encode((element != null)
                    ? element
                    : new FilterElement("Mul", BinaryOperatorType.getInstance()),
                    e, output, hints);

                return;

            case MATH_SUBTRACT:
                BinaryOperatorType.getInstance().encode((element != null)
                    ? element
                    : new FilterElement("Sub", BinaryOperatorType.getInstance()),
                    e, output, hints);

                return;
            }
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.