Package net.opengis.wfs20

Examples of net.opengis.wfs20.DocumentRoot


public class ListStoredQueriesResponseTypeBindingTest extends WFSTestSupport {

    public void testEncode() throws Exception {
        Wfs20Factory factory = Wfs20Factory.eINSTANCE;
       
        StoredQueryListItemType sqli = factory.createStoredQueryListItemType();
        sqli.setId("fooId");
       
        TitleType title = factory.createTitleType();
        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);
View Full Code Here


        GetFeatureType gf = (GetFeatureType) parse();
        assertNotNull(gf);
       
        assertEquals(1, gf.getAbstractQueryExpression().size());
       
        StoredQueryType sq = (StoredQueryType) gf.getAbstractQueryExpression().get(0);
        assertEquals(1, sq.getParameter().size());
        ParameterType p = sq.getParameter().get(0);
        assertEquals("AreaOfInterest", p.getName());
        assertNotNull(p.getValue());
        assertTrue(p.getValue().contains("gml:Polygon"));
    }
View Full Code Here

        Wfs20Factory factory = Wfs20Factory.eINSTANCE;
       
        StoredQueryListItemType sqli = factory.createStoredQueryListItemType();
        sqli.setId("fooId");
       
        TitleType title = factory.createTitleType();
        title.setValue("fooTitle");
        sqli.getTitle().add(title);
       
        sqli.getReturnFeatureType().add(new QName("http://foo.org", "fooName", "foo"));
       
        ListStoredQueriesResponseType lsqr = factory.createListStoredQueriesResponseType();
View Full Code Here

     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public NotificationChain basicSetTransactionSummary(TransactionSummaryType newTransactionSummary, NotificationChain msgs) {
        TransactionSummaryType oldTransactionSummary = transactionSummary;
        transactionSummary = newTransactionSummary;
        if (eNotificationRequired()) {
            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Wfs20Package.TRANSACTION_RESPONSE_TYPE__TRANSACTION_SUMMARY, oldTransactionSummary, newTransactionSummary);
            if (msgs == null) msgs = notification; else msgs.add(notification);
        }
View Full Code Here

        "    </InWaterA_1M> " +
        "   </wfs:Insert> " +
        "</wfs:Transaction> ";
        buildDocument(xml);
       
        TransactionType t = (TransactionType) parse();
        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

        "      </fes:Filter> " +
        "   </wfs:Update> " +
        "</wfs:Transaction> ";
        buildDocument(xml);
       
        TransactionType t = (TransactionType) parse();
        assertNotNull(t);
       
        assertEquals(1, t.getAbstractTransactionAction().size());
       
        UpdateType u = (UpdateType) t.getAbstractTransactionAction().get(0);
        assertEquals(1, u.getProperty().size());
       
        PropertyType p = u.getProperty().get(0);
        assertEquals("population", p.getValueReference().getValue().getLocalPart());
        assertEquals("4070000", p.getValue());
View Full Code Here

        "      </fes:Filter> " +
        "   </wfs:Delete> " +
        "</wfs:Transaction> ";
        buildDocument(xml);
       
        TransactionType t = (TransactionType) parse();
        assertEquals(1, t.getAbstractTransactionAction().size());
       
        DeleteType d = (DeleteType) t.getAbstractTransactionAction().get(0);
        assertNotNull(d.getFilter());
       
        Id id = (Id) d.getFilter();
        assertTrue(id.getIDs().contains("InWaterA_1M.1013"));
View Full Code Here

     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public NotificationChain basicSetTruncatedResponse(TruncatedResponseType newTruncatedResponse, NotificationChain msgs) {
        TruncatedResponseType oldTruncatedResponse = truncatedResponse;
        truncatedResponse = newTruncatedResponse;
        if (eNotificationRequired()) {
            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Wfs20Package.FEATURE_COLLECTION_TYPE__TRUNCATED_RESPONSE, oldTruncatedResponse, newTruncatedResponse);
            if (msgs == null) msgs = notification; else msgs.add(notification);
        }
View Full Code Here

     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public NotificationChain basicSetTruncatedResponse(TruncatedResponseType newTruncatedResponse, NotificationChain msgs) {
        TruncatedResponseType oldTruncatedResponse = truncatedResponse;
        truncatedResponse = newTruncatedResponse;
        if (eNotificationRequired()) {
            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Wfs20Package.VALUE_COLLECTION_TYPE__TRUNCATED_RESPONSE, oldTruncatedResponse, newTruncatedResponse);
            if (msgs == null) msgs = notification; else msgs.add(notification);
        }
View Full Code Here

     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setAction(UpdateActionType newAction) {
        UpdateActionType oldAction = action;
        action = newAction == null ? ACTION_EDEFAULT : newAction;
        boolean oldActionESet = actionESet;
        actionESet = true;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET, Wfs20Package.VALUE_REFERENCE_TYPE__ACTION, oldAction, action, !oldActionESet));
View Full Code Here

TOP

Related Classes of net.opengis.wfs20.DocumentRoot

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.