Package net.opengis.wfs20

Examples of net.opengis.wfs20.InsertType


       
        assertEquals(1, sqd.getQueryExpressionText().size());
    }

    public void testEncode() throws Exception {
        Wfs20Factory f = Wfs20Factory.eINSTANCE;
        StoredQueryDescriptionType sqd = f.createStoredQueryDescriptionType();
        sqd.setId("foo");

        ParameterExpressionType p = f.createParameterExpressionType();
        p.setName("AreaOfInterest");
        p.setType(GML.Polygon);
        sqd.getParameter().add(p);

        String xml =
        "<wfs:Query typeNames='myns:Parks'>" +
        "  <fes:Filter>" +
        "   <fes:Within>\n" +
        "     <fes:ValueReference>geometry</fes:ValueReference>" +
        "     ${AreaOfInterest}" +
        "   </fes:Within>" +
        "  </fes:Filter>" +
        "</wfs:Query> ";
       
        QueryExpressionTextType qet = f.createQueryExpressionTextType();
        sqd.getQueryExpressionText().add(qet);
       
        qet.setLanguage("urn:ogc:def:queryLanguage:OGC-WFS::WFS_QueryExpression");
        qet.setReturnFeatureTypes(Arrays.asList(new QName("http://www.someserver.com/myns", "Parks")));
        qet.setValue(xml);
View Full Code Here


        }
        else {
            throw new WFSException(request, String.format("Stored query %s does not exist.", request.getId()));
        }
       
        Wfs20Factory factory = Wfs20Factory.eINSTANCE;
        ExecutionStatusType response = factory.createExecutionStatusType();
        response.setStatus("OK");
        return response;
    }
View Full Code Here

    protected void insertResourceProperty( XmlObject[] propElems )
    {
        SetResourcePropertiesPortTypeImpl setProvider = new SetResourcePropertiesPortTypeImpl( m_resourceContext );
        SetResourcePropertiesDocument setDocument = SetResourcePropertiesDocument.Factory.newInstance();
        SetResourcePropertiesDocument.SetResourceProperties setType = setDocument.addNewSetResourceProperties();
        InsertType insertType = setType.addNewInsert();
        for ( int i = 0; i < propElems.length; i++ )
        {
            XmlBeanUtils.addChildElement( insertType, propElems[i] );
        }
View Full Code Here

    protected void insertXsdAnyPropElem()
            throws XmlException
    {
        SetResourcePropertiesProvider set_provider = new SetResourcePropertiesProvider( m_resourceContext );
        InsertDocument insertDoc = InsertDocument.Factory.newInstance();
        InsertType insertType = insertDoc.addNewInsert();
        XmlObject anyXBean = createXsdAnyPropElem();
        XmlBeanUtils.addChildElement( insertType, anyXBean );
        set_provider.insertResourceProperty( insertType );
    }
View Full Code Here

        ResourceProperty resourceProp = resource.getResourcePropertySet().get( SushiPropertyQNames.EBI );
        resourceProp.setCallback( m_callback );

        SetResourcePropertiesProvider set_provider = new SetResourcePropertiesProvider( m_resourceContext );
        InsertDocument insertDoc = InsertDocument.Factory.newInstance();
        InsertType insertType = insertDoc.addNewInsert();

        XmlObject xmlObject =
                XmlObject.Factory.parse( "<foo:Ebi xmlns:foo=\"http://ws.apache.org/resource/properties/test/sushi\">"
                + "0" + "</foo:Ebi>" );
        XmlBeanUtils.addChildElement( insertType, xmlObject );
View Full Code Here

            throws XmlException
    {
        m_resourceContext = new SushiResourceContext();
        SetResourcePropertiesProvider set_provider = new SetResourcePropertiesProvider( m_resourceContext );
        InsertDocument insertDoc = InsertDocument.Factory.newInstance();
        InsertType insertType = insertDoc.addNewInsert();

        XmlObject xmlObject =
                XmlObject.Factory.parse( "<foo:Ebi xmlns:foo=\"http://ws.apache.org/resource/properties/test/sushi\">"
                + "0" + "</foo:Ebi>" );
        XmlBeanUtils.addChildElement( insertType, xmlObject );
View Full Code Here

    public void testDeleteResourcePropertiesCallback() throws ResourceException, ResourceContextException, XmlException
    {
        m_resourceContext = new SushiResourceContext();
        SetResourcePropertiesProvider set_provider = new SetResourcePropertiesProvider( m_resourceContext );
        InsertDocument insertDoc = InsertDocument.Factory.newInstance();
        InsertType insertType = insertDoc.addNewInsert();

        XmlObject xmlObject =
                XmlObject.Factory.parse( "<foo:Ika xmlns:foo=\"http://ws.apache.org/resource/properties/test/sushi\">"
                + "my favorite!" + "</foo:Ika>" );
        XmlBeanUtils.addChildElement( insertType, xmlObject );
View Full Code Here

    protected void insertResourceProperty( XmlObject[] propElems )
    {
        SetResourcePropertiesPortTypeImpl setProvider = new SetResourcePropertiesPortTypeImpl( m_resourceContext );
        SetResourcePropertiesDocument setDocument = SetResourcePropertiesDocument.Factory.newInstance();
        SetResourcePropertiesDocument.SetResourceProperties setType = setDocument.addNewSetResourceProperties();
        InsertType insertType = setType.addNewInsert();
        for ( int i = 0; i < propElems.length; i++ )
        {
            XmlBeanUtils.addChildElement( insertType, propElems[i] );
        }
        setProvider.setResourceProperties( setDocument ).getSetResourcePropertiesResponse();
View Full Code Here

      SetResourcePropertiesPortTypeImpl                   setProvider =
         new SetResourcePropertiesPortTypeImpl( m_resourceContext );
      SetResourcePropertiesDocument                       setDocument =
         SetResourcePropertiesDocument.Factory.newInstance(  );
      SetResourcePropertiesDocument.SetResourceProperties setType = setDocument.addNewSetResourceProperties(  );
      InsertType                                          insertType = setType.addNewInsert(  );
      for ( int i = 0; i < propElems.length; i++ )
      {
         XmlBeanUtils.addChildElement( insertType, propElems[i] );
      }
View Full Code Here

      SetResourcePropertiesPortTypeImpl                   setProvider =
         new SetResourcePropertiesPortTypeImpl( m_resourceContext );
      SetResourcePropertiesDocument                       setDocument =
         SetResourcePropertiesDocument.Factory.newInstance(  );
      SetResourcePropertiesDocument.SetResourceProperties setType    = setDocument.addNewSetResourceProperties(  );
      InsertType                                          insertType = setType.addNewInsert(  );
      for ( int i = 0; i < propElems.length; i++ )
      {
         XmlBeanUtils.addChildElement( insertType, propElems[i] );
      }
View Full Code Here

TOP

Related Classes of net.opengis.wfs20.InsertType

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.