Package net.opengis.wfsv

Examples of net.opengis.wfsv.DescribeVersionedFeatureTypeType


        // let super do its thing
        request = super.read(request, kvp, rawKvp);

        // do an additional check for outputFormat, because the default
        // in wfs 1.1 is not the default for wfs 1.0
        DescribeVersionedFeatureTypeType describeFeatureType = (DescribeVersionedFeatureTypeType) request;

        if (!describeFeatureType.isSetOutputFormat()) {
            if (describeFeatureType.getVersion().startsWith("1.1")) {
                // set 1.1 default
                describeFeatureType
                        .setOutputFormat("text/xml; subtype=gml/3.1.1");
            } else {
                // set 1.0 default
                describeFeatureType.setOutputFormat("XMLSCHEMA");
            }
        }

        return request;
    }
View Full Code Here


     *
     * @generated modifiable
     */
    public Object parse(ElementInstance instance, Node node, Object value)
            throws Exception {
        DescribeVersionedFeatureTypeType describeFeatureType = wfsvFactory.createDescribeVersionedFeatureTypeType();

        WFSBindingUtils.service(describeFeatureType, node);
        WFSBindingUtils.version(describeFeatureType, node);
        WFSBindingUtils.outputFormat(describeFeatureType, node, "XMLSCHEMA");
        // crude hack to work around the fact we don't have a real wfsv-1.0 configuration...
        // we assume everybody will want only the XMLSCHEMA output format for 1.0.0...
        if("1.0.0".equals(describeFeatureType.getVersion()))
            describeFeatureType.setOutputFormat("XMLSCHEMA");

        describeFeatureType.getTypeName().addAll(node.getChildValues(QName.class));
        if(node.hasAttribute("versioned"))
            describeFeatureType.setVersioned(((Boolean) node.getAttributeValue("versioned")).booleanValue());

        return describeFeatureType;
    }
View Full Code Here

TOP

Related Classes of net.opengis.wfsv.DescribeVersionedFeatureTypeType

Copyright © 2018 www.massapicom. 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.