Package net.opengis.wfs20

Examples of net.opengis.wfs20.UpdateType


            "      </fes:Filter> " +
            "   </wfs:Query> " +
            "</wfs:GetFeatureWithLock> ";
        buildDocument(xml);
       
        GetFeatureWithLockType gf = (GetFeatureWithLockType) parse();
        assertNotNull(gf);
       
        assertEquals(BigInteger.valueOf(124), gf.getExpiry());
        assertEquals(AllSomeType.ALL, gf.getLockAction());
       
        assertEquals(1, gf.getAbstractQueryExpression().size());
        QueryType q = (QueryType) gf.getAbstractQueryExpression().get(0);
        assertNotNull(q);
       
        assertEquals(new URI("epsg:4326"), q.getSrsName());
        assertEquals(1, q.getTypeNames().size());
        assertEquals(
View Full Code Here


        "   </wfs:Query> " +
        "</wfs:GetPropertyValue> ";
       
        buildDocument(xml);
       
        GetPropertyValueType gf = (GetPropertyValueType) parse();
        assertNotNull(gf);
        assertEquals("foo", gf.getValueReference());
        QueryType q = (QueryType) gf.getAbstractQueryExpression();
        assertNotNull(q);
       
        assertEquals(new URI("epsg:4326"), q.getSrsName());
        assertEquals(1, q.getTypeNames().size());
        assertEquals(
View Full Code Here

        assertNotNull(t);
       
        assertEquals(1, t.getAbstractTransactionAction().size());
        assertEquals(1, t.getGroup().size());
       
        InsertType i = (InsertType) t.getAbstractTransactionAction().get(0);
        assertEquals(2, i.getAny().size());
    }
View Full Code Here

        title.setValue("fooTitle");
        sqli.getTitle().add(title);
       
        sqli.getReturnFeatureType().add(new QName("http://foo.org", "fooName", "foo"));
       
        ListStoredQueriesResponseType lsqr = factory.createListStoredQueriesResponseType();
        lsqr.getStoredQuery().add(sqli);

        Document dom = encode(lsqr, WFS.ListStoredQueriesResponse);
       
        Element e = getElementByQName(dom, WFS.StoredQuery);
        assertEquals("fooId", e.getAttribute("id"));
View Full Code Here

        "      </fes:Filter> " +
        "   </Query> " +
        "</LockFeature>";
        buildDocument(xml);
       
        LockFeatureType lf = (LockFeatureType) parse();
        assertNotNull(lf);
       
        assertEquals(1, lf.getAbstractQueryExpression().size());
        QueryType q = (QueryType) lf.getAbstractQueryExpression().get(0);
       
        assertTrue(q.getTypeNames().contains(new QName("http://www.someserver.com/myns", "InWaterA_1M")));
        Id f = (Id) q.getFilter();
        assertEquals(5, f.getIDs().size());
    }
View Full Code Here

     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public NotificationChain basicSetNoCRS(NoCRSType newNoCRS, NotificationChain msgs) {
        NoCRSType oldNoCRS = noCRS;
        noCRS = newNoCRS;
        if (eNotificationRequired()) {
            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Wfs20Package.FEATURE_TYPE_TYPE__NO_CRS, oldNoCRS, newNoCRS);
            if (msgs == null) msgs = notification; else msgs.add(notification);
        }
View Full Code Here

     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public NotificationChain basicSetOutputFormats(OutputFormatListType newOutputFormats, NotificationChain msgs) {
        OutputFormatListType oldOutputFormats = outputFormats;
        outputFormats = newOutputFormats;
        if (eNotificationRequired()) {
            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Wfs20Package.FEATURE_TYPE_TYPE__OUTPUT_FORMATS, oldOutputFormats, newOutputFormats);
            if (msgs == null) msgs = notification; else msgs.add(notification);
        }
View Full Code Here

        return eType.getOtherCRS();
    }

    @Override
    public Set<String> getOutputFormats() {
        final OutputFormatListType outputFormats = eType.getOutputFormats();
        if (null == outputFormats) {
            return Collections.emptySet();
        }

        List<String> ftypeDeclaredFormats = outputFormats.getFormat();
        if (null == ftypeDeclaredFormats || ftypeDeclaredFormats.isEmpty()) {
            return Collections.emptySet();
        }

        return new HashSet<String>(ftypeDeclaredFormats);
View Full Code Here

       
        StoredQueryDescriptionType  sqd = csq.getStoredQueryDefinition().get(0);
        assertEquals("Features In Polygon", sqd.getTitle().get(0).getValue());
       
        assertEquals(1, sqd.getParameter().size());
        ParameterExpressionType pe = sqd.getParameter().get(0);
        assertEquals("AreaOfInterest", pe.getName());
        assertEquals(GML.Polygon, pe.getType());
       
        assertEquals(1, sqd.getQueryExpressionText().size());
        QueryExpressionTextType qet = sqd.getQueryExpressionText().get(0);
        assertEquals("urn:ogc:def:queryLanguage:OGC-WFS::WFS_QueryExpression", qet.getLanguage());
        assertFalse(qet.isIsPrivate());
View Full Code Here

        StoredQueryDescriptionType sqd = (StoredQueryDescriptionType) parse(WFS.StoredQueryDescriptionType);
        assertNotNull(sqd);
       
        assertEquals(1, sqd.getParameter().size());
       
        ParameterExpressionType p = sqd.getParameter().get(0);
        assertEquals("AreaOfInterest", p.getName());
        assertEquals(GML.Polygon, p.getType());
       
        assertEquals(1, sqd.getQueryExpressionText().size());
    }
View Full Code Here

TOP

Related Classes of net.opengis.wfs20.UpdateType

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.