Examples of copyTo()


Examples of net.sf.archimede.model.storedFile.StoredFileDao.copyTo()

                }               
            } else if (this.copyRequested) {
                for (Iterator it = this.selectedStoredFiles.iterator(); it.hasNext(); ){
                    ViewStoredFile viewStoredFile = (ViewStoredFile) it.next();
                    StoredFile cutStoredFile = viewStoredFile.getStoredFile();
                    storedFileDao.copyTo(cutStoredFile, destinationFolder);
                    this.copyRequested = false;
               
            } else {
                //All false: nothing to do
            }
View Full Code Here

Examples of org.apache.cayenne.modeler.pref.DBConnectionInfo.copyTo()

        this.dataSourceKey = dataSourceKey;

        // update a clone object that will be used to obtain connection...
        DBConnectionInfo currentInfo = (DBConnectionInfo) dataSources.get(dataSourceKey);
        if (currentInfo != null) {
            currentInfo.copyTo(connectionInfo);
        }
        else {
            connectionInfo = new DBConnectionInfo();
        }
View Full Code Here

Examples of org.apache.click.control.Form.copyTo()

       
        form = new Form();
        TextField codeField = new TextField("address.state.code");
        codeField.setValue("NSW");
        form.add(codeField);
        form.copyTo(user, true);
        assertEquals("NSW", user.getAddress().getState().getCode());
    }

    /**
     * Sanity checks for ClickUtils.copyObjectToForm.
View Full Code Here

Examples of org.apache.flink.types.Record.copyTo()

      double distance = res.getField(3, DoubleValue.class).getValue();

      // compare distances
      if (distance < nearestDistance) {
        nearestDistance = distance;
        res.copyTo(this.nearest);
      }
    }

    // emit nearest one
    out.collect(this.nearest);
View Full Code Here

Examples of org.apache.jackrabbit.vault.vlt.meta.MetaFile.copyTo()

            base.setMd5(copy.getMd5());
            if (!baseOnly) {
                // only copy if not equal
                if (work == null || !work.getMd5().equals(copy.getMd5()) || !getFile().exists()) {
                    try {
                        baseFile.copyTo(getFile(), true);
                        entry.put(base.copyAs(VltEntryInfo.Type.WORK));
                    } catch (IOException e) {
                        throw exception("Error while copying files.", e);
                    }
                }
View Full Code Here

Examples of org.apache.lucene.util.AttributeImpl.copyTo()

            // TODO: this is a simple workaround to still work with tokens, not very effective, but as far as I know, this writer should get removed soon:
            final Token token = new Token();
            for (Iterator<AttributeImpl> atts = tokenStream.getAttributeImplsIterator(); atts.hasNext();) {
              final AttributeImpl att = atts.next();
              try {
                att.copyTo(token);
              } catch (Exception e) {
                // ignore unsupported attributes,
                // this may fail to copy some attributes, if a special combined AttributeImpl is used, that
                // implements basic attributes supported by Token and also other customized ones in one class.
              }
View Full Code Here

Examples of org.apache.lucene.util.AttributeImpl.copyTo()

            // TODO: this is a simple workaround to still work with tokens, not very effective, but as far as I know, this writer should get removed soon:
            final Token token = new Token();
            for (Iterator<AttributeImpl> atts = tokenStream.getAttributeImplsIterator(); atts.hasNext();) {
              final AttributeImpl att = atts.next();
              try {
                att.copyTo(token);
              } catch (Exception e) {
                // ignore unsupported attributes,
                // this may fail to copy some attributes, if a special combined AttributeImpl is used, that
                // implements basic attributes supported by Token and also other customized ones in one class.
              }
View Full Code Here

Examples of org.apache.lucene.util.AttributeSource.copyTo()

        clearAttributes();
        AttributeSource next = tokenIterator.next();
        Iterator<Class<? extends Attribute>> atts = next.getAttributeClassesIterator();
        while (atts.hasNext()) // make sure all att impls in the token exist here
          addAttribute(atts.next());
        next.copyTo(this);
        return true;
      } else {
        return false;
      }
    }
View Full Code Here

Examples of org.apache.roller.planet.ui.authoring.struts.forms.PlanetConfigForm.copyTo()

                }
                PlanetConfigForm form = (PlanetConfigForm) actionForm;
                ActionErrors errors = validate(form);
                if (errors.isEmpty())
                {
                    form.copyTo(config, request.getLocale());
                    planet.saveConfiguration(config);
                    if (planet.getGroup("external") == null)
                    {
                        PlanetGroupData group = new PlanetGroupData();
                        group.setHandle("external");
View Full Code Here

Examples of org.apache.roller.planet.ui.authoring.struts.forms.PlanetGroupForm.copyTo()

                    }
                    else
                    {
                        group = planet.getGroupById(form.getId());
                    }               
                    form.copyTo(group, request.getLocale());
                    planet.saveGroup(group)
                    roller.flush();

                    ActionMessages messages = new ActionMessages();
                    messages.add(null,
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.