Examples of UpdateAction


Examples of org.geotools.data.wfs.v1_0_0.Action.UpdateAction

            Map hints) throws IOException, OperationNotSupportedException {
            if (!canEncode(element, value, hints)) {
                return;
            }

            UpdateAction a = (UpdateAction) value;

            AttributesImpl attributes = new AttributesImpl();
            attributes.addAttribute(WFSSchema.NAMESPACE.toString(),
                attrs[1].getName(), null, "string", a.getTypeName());

            output.startElement(element.getNamespace(), element.getName(),
                attributes);

            Object[] prop = new Object[2];
            String[] names = a.getPropertyNames();

            for (int i = 0; i < names.length; i++) {
                prop[0] = names[i];
                prop[1] = a.getProperty(names[i]);
                elems[0].getType().encode(elems[0], prop, output, hints);
            }

            elems[1].getType().encode(elems[1], a.getFilter(), output, hints);

            output.endElement(element.getNamespace(), element.getName());
        }
View Full Code Here

Examples of org.geotools.data.wfs.v1_0_0.Action.UpdateAction

                }
          }
            props.put(names[i].getLocalPart(), value[i]);
        }

        ts.addAction(getSchema().getTypeName(), new UpdateAction(getSchema().getTypeName(), filter, props));

        // Fire a notification.
        // JE
        if( bounds==null ){
            // if bounds are null then send an envelope to say that features were modified but
View Full Code Here

Examples of org.geotools.data.wfs.v1_0_0.Action.UpdateAction

        Iterator<Action> i = actions.iterator();
        Filter updateFilter=null;
        while(i.hasNext()){
          Action a = (Action)i.next();
          if(a.getType() == Action.UPDATE){
            UpdateAction ua = (UpdateAction)a;
            if(ua.getProperty(attributePath)!=null){
              if( updateFilter==null )
                updateFilter=a.getFilter();
              else
                updateFilter=ff.and( updateFilter, a.getFilter());
            }
View Full Code Here

Examples of org.geotools.data.wfs.v1_0_0.Action.UpdateAction

            return null;
        } else {
            if ((a.getType() == Action.UPDATE)
                    && a.getFilter().evaluate(feature)) {
                // update the feature
                UpdateAction ua = (UpdateAction) a;
                ua.update(feature);
            }
        }
        return feature;
    }
View Full Code Here

Examples of org.mokai.action.UpdateAction

  public void shouldAddField() throws Exception {
    Message message = new Message()
      .setProperty("to", "test-to")
      .setProperty("from", "test-from");

    UpdateAction updateAction = new UpdateAction();
    updateAction.setField("new");
    updateAction.setValue("test-new");

    updateAction.execute(message);

    Assert.assertEquals(message.getProperties().size(), 3);
    Assert.assertEquals(message.getProperty("new", String.class), "test-new");
    Assert.assertEquals(message.getProperty("to", String.class), "test-to");
    Assert.assertEquals(message.getProperty("from", String.class), "test-from");
View Full Code Here

Examples of org.mokai.action.UpdateAction

  public void shouldUpdateField() throws Exception {
    Message message = new Message()
      .setProperty("to", "test-to")
      .setProperty("from", "test-from");

    UpdateAction updateAction = new UpdateAction();
    updateAction.setField("to");
    updateAction.setValue("new-to");

    updateAction.execute(message);

    Assert.assertEquals(message.getProperties().size(), 2);
    Assert.assertEquals(message.getProperty("to", String.class), "new-to");
    Assert.assertEquals(message.getProperty("from", String.class), "test-from");
  }
View Full Code Here

Examples of org.nbgit.ui.update.UpdateAction

        if (destination == VCSAnnotator.ActionDestination.MainMenu) {
            actions.add(new InitAction(loc.getString("CTL_MenuItem_Create"), ctx)); // NOI18N
            actions.add(null);
            actions.add(new StatusAction(loc.getString("CTL_PopupMenuItem_Status"), ctx)); // NOI18N
            actions.add(new DiffAction(loc.getString("CTL_PopupMenuItem_Diff"), ctx)); // NOI18N
            actions.add(new UpdateAction(loc.getString("CTL_PopupMenuItem_Update"), ctx)); // NOI18N
            actions.add(new CommitAction(loc.getString("CTL_PopupMenuItem_Commit"), ctx)); // NOI18N
            actions.add(null);
            /*
            actions.add(new ExportDiffAction(loc.getString("CTL_PopupMenuItem_ExportDiff"), ctx)); // NOI18N
            actions.add(new ApplyDiffAction(loc.getString("CTL_PopupMenuItem_ImportDiff"), ctx)); // NOI18N
            actions.add(null);
            */
            if (root != null) {
            actions.add(new CloneAction(NbBundle.getMessage(GitAnnotator.class, "CTL_PopupMenuItem_CloneLocal"// NOI18N
            root.getName()), ctx));
            }
            actions.add(new CloneExternalAction(loc.getString("CTL_PopupMenuItem_CloneOther"), ctx));     // NOI18N
            actions.add(null);
            /*
            actions.add(new FetchAction(NbBundle.getMessage(GitAnnotator.class, "CTL_PopupMenuItem_FetchLocal"), ctx)); // NOI18N
            actions.add(new PushAction(NbBundle.getMessage(GitAnnotator.class, "CTL_PopupMenuItem_PushLocal"), ctx)); // NOI18N
            actions.add(new PushOtherAction(loc.getString("CTL_PopupMenuItem_PushOther"), ctx)); // NOI18N
            actions.add(new PullAction(NbBundle.getMessage(GitAnnotator.class, "CTL_PopupMenuItem_PullLocal"), ctx)); // NOI18N
            actions.add(new PullOtherAction(loc.getString("CTL_PopupMenuItem_PullOther"), ctx)); // NOI18N
            actions.add(new MergeAction(NbBundle.getMessage(GitAnnotator.class, "CTL_PopupMenuItem_Merge"), ctx)); // NOI18N
            actions.add(null);
            AnnotateAction tempA = new AnnotateAction(loc.getString("CTL_PopupMenuItem_ShowAnnotations"), ctx); // NOI18N
            if (tempA.visible(nodes))
            tempA = new AnnotateAction(loc.getString("CTL_PopupMenuItem_HideAnnotations"), ctx);
            actions.add(tempA);
             */
            actions.add(new BrowserAction(loc.getString("CTL_PopupMenuItem_Browser"), ctx)); // NOI18N
            actions.add(new LogAction(loc.getString("CTL_PopupMenuItem_Log"), ctx)); // NOI18N
        /*
            actions.add(new IncomingAction(NbBundle.getMessage(GitAnnotator.class, "CTL_PopupMenuItem_ShowIncoming"), ctx)); // NOI18N
            actions.add(new OutAction(NbBundle.getMessage(GitAnnotator.class, "CTL_PopupMenuItem_ShowOut"), ctx)); // NOI18N
            actions.add(new ViewAction(loc.getString("CTL_PopupMenuItem_View"), ctx)); // NOI18N
             */
            actions.add(null);
            actions.add(new RevertModificationsAction(NbBundle.getMessage(GitAnnotator.class, "CTL_PopupMenuItem_Revert"), ctx)); // NOI18N
        /*
            actions.add(new StashAction(NbBundle.getMessage(GitAnnotator.class, "CTL_PopupMenuItem_Stash"), ctx));
            actions.add(new StripAction(NbBundle.getMessage(GitAnnotator.class, "CTL_PopupMenuItem_Strip"), ctx)); // NOI18N
            actions.add(new BackoutAction(NbBundle.getMessage(GitAnnotator.class, "CTL_PopupMenuItem_Backout"), ctx)); // NOI18N
            actions.add(new RollbackAction(NbBundle.getMessage(GitAnnotator.class, "CTL_PopupMenuItem_Rollback"), ctx)); // NOI18N
            actions.add(new ResolveConflictsAction(NbBundle.getMessage(GitAnnotator.class, "CTL_PopupMenuItem_Resolve"), ctx)); // NOI18N
             * */
        /*
            if (!onlyProjects && !onlyFolders) {
            IgnoreAction tempIA = new IgnoreAction(loc.getString("CTL_PopupMenuItem_Ignore"), ctx); // NOI18N
            actions.add(tempIA);
            }
             * */
            actions.add(null);
            actions.add(new CustomMenu(ctx, true));
            actions.add(null);
            actions.add(new PropertiesAction(loc.getString("CTL_PopupMenuItem_Properties"), ctx)); // NOI18N
        } else if (noneVersioned) {
            actions.add(new InitAction(loc.getString("CTL_PopupMenuItem_Create"), ctx));
        } else {
            actions.add(new StatusAction(loc.getString("CTL_PopupMenuItem_Status"), ctx)); // NOI18N
            actions.add(new DiffAction(loc.getString("CTL_PopupMenuItem_Diff"), ctx)); // NOI18N
            actions.add(new UpdateAction(loc.getString("CTL_PopupMenuItem_Update"), ctx)); // NOI18N
            actions.add(new CommitAction(loc.getString("CTL_PopupMenuItem_Commit"), ctx)); // NOI18N
            actions.add(null);
            /*
            if (root != null)
            actions.add(new CloneAction(NbBundle.getMessage(GitAnnotator.class, "CTL_PopupMenuItem_CloneLocal", // NOI18N
View Full Code Here

Examples of ru.snake.amazonwatcher.actions.UpdateAction

    addItemAction = new AddItemAction(this, productModel);
    editItemAction = new EditItemAction(this, productModel, selectionModel);
    removeItemAction = new RemoveItemAction(this, productModel,
        selectionModel);
    openUrlAction = new OpenUrlAction(productModel, selectionModel);
    updateAction = new UpdateAction(productModel, statusBar);
    closeAction = new CloseAction(this);

    TableDoubleClick tableDoubleClick = new TableDoubleClick(openUrlAction);
    productTable.addMouseListener(tableDoubleClick);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.