Package net.opengis.wfs

Examples of net.opengis.wfs.OperationsType


     * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
     * @generated
     */
  public NotificationChain basicSetOperations(OperationsType newOperations, NotificationChain msgs) {
        OperationsType oldOperations = operations;
        operations = newOperations;
        if (eNotificationRequired()) {
            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, WfsPackage.FEATURE_TYPE_TYPE__OPERATIONS, oldOperations, newOperations);
            if (msgs == null) msgs = notification; else msgs.add(notification);
        }
View Full Code Here


     * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
     * @generated
     */
  public NotificationChain basicSetOperations(OperationsType newOperations, NotificationChain msgs) {
        OperationsType oldOperations = operations;
        operations = newOperations;
        if (eNotificationRequired()) {
            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, WfsPackage.FEATURE_TYPE_LIST_TYPE__OPERATIONS, oldOperations, newOperations);
            if (msgs == null) msgs = notification; else msgs.add(notification);
        }
View Full Code Here

        assertEquals("Transaction", ((OperationType) om.getOperation().get(5)).getName());
        assertEquals(1, ((OperationType) om.getOperation().get(5)).getDCP().size());
    }
   
    void assertFeatureTypeListOperations(WFSCapabilitiesType caps) {
        OperationsType o = caps.getFeatureTypeList().getOperations();
        assertNotNull(o);

        assertEquals(5, o.getOperation().size());
        assertEquals("Query", ((net.opengis.wfs.OperationType) o.getOperation().get(0)).getName());
        assertEquals("Insert", ((net.opengis.wfs.OperationType) o.getOperation().get(1)).getName());
        assertEquals("Update", ((net.opengis.wfs.OperationType) o.getOperation().get(2)).getName());
        assertEquals("Delete", ((net.opengis.wfs.OperationType) o.getOperation().get(3)).getName());
        assertEquals("Lock", ((net.opengis.wfs.OperationType) o.getOperation().get(4)).getName());
       
    }
View Full Code Here

    }

    public void testEncode() throws Exception {
        FeatureTypeListType ftl = factory.createFeatureTypeListType();
        {
            OperationsType ops = factory.createOperationsType();
            ops.getOperation().add(OperationType.DELETE_LITERAL);
            ops.getOperation().add(OperationType.INSERT_LITERAL);
            ops.getOperation().add(OperationType.QUERY_LITERAL);
            ftl.setOperations(ops);
        }
        {
            FeatureTypeType ft = factory.createFeatureTypeType();
            ft.setName(new QName("http://www.openplans.org/topp", "Type1"));
            ft.setTitle("Title1");
            ft.setAbstract("Abstract1");
            KeywordsType kwd = Ows10Factory.eINSTANCE.createKeywordsType();
            kwd.getKeyword().add("keword1");
            kwd.getKeyword().add("keword2");
            ft.getKeywords().add(kwd);
            ft.setDefaultSRS("urn:ogc:crs:EPSG:6.7:4326");
            ft.getOtherSRS().add("urn:ogc:crs:EPSG:6.7:23030");
            ft.setOperations(factory.createOperationsType());
            OperationsType operations = ft.getOperations();
            List operationList = operations.getOperation();
            operationList.add(OperationType.QUERY_LITERAL);
            operationList.add(OperationType.INSERT_LITERAL);
            operationList.add(OperationType.UPDATE_LITERAL);
            operationList.add(OperationType.DELETE_LITERAL);
            OutputFormatListType outputFormat = factory.createOutputFormatListType();
View Full Code Here

        }
        if (!supportsOperation(TRANSACTION, POST)) {
            return false;
        }

        OperationsType operations = this.capabilities.getFeatureTypeList().getOperations();
        @SuppressWarnings("unchecked")
        List<net.opengis.wfs.OperationType> operation = operations.getOperation();
        for (net.opengis.wfs.OperationType required : Arrays.asList(
                net.opengis.wfs.OperationType.INSERT_LITERAL,
                net.opengis.wfs.OperationType.UPDATE_LITERAL,
                net.opengis.wfs.OperationType.DELETE_LITERAL)) {
View Full Code Here

        assertEquals(2, ((OperationType) om.getOperation().get(5)).getDCP().size());
       
    }
   
    void assertFeatureTypeListOperations(WFSCapabilitiesType caps) {
        OperationsType o = caps.getFeatureTypeList().getOperations();
        assertNotNull(o);

        assertEquals(5, o.getOperation().size());
        assertEquals("Query", ((net.opengis.wfs.OperationType) o.getOperation().get(3)).getName());
        assertEquals("Insert", ((net.opengis.wfs.OperationType) o.getOperation().get(0)).getName());
        assertEquals("Update", ((net.opengis.wfs.OperationType) o.getOperation().get(1)).getName());
        assertEquals("Delete", ((net.opengis.wfs.OperationType) o.getOperation().get(2)).getName());
        assertEquals("Lock", ((net.opengis.wfs.OperationType) o.getOperation().get(4)).getName());
       
    }
View Full Code Here

     *
     * @generated modifiable
     */
    public Object parse(ElementInstance instance, Node node, Object value)
        throws Exception {               
        OperationsType om = factory.createOperationsType();       
        for (Object ob : OperationType.VALUES){
            if (node.getChild(((OperationType) ob).getName()) != null){
                om.getOperation().add(ob);
            }
        }       
        return om;       
    }
View Full Code Here

TOP

Related Classes of net.opengis.wfs.OperationsType

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.