Examples of copy()


Examples of nu.xom.Document.copy()

        }
        long post = System.currentTimeMillis();
        System.out.println((post - pre)/1000.0 + "s to build document by copying");
         
        pre = System.currentTimeMillis();
        doc.copy();
        post = System.currentTimeMillis();
        System.out.println((post - pre)/1000.0 + "s to copy entire Document");
         
        System.gc(); System.gc(); System.gc();
View Full Code Here

Examples of nu.xom.Element.copy()

        Element root = new Element("root");
        Document doc = new Document(root);
        Element dataElement = dataDoc.getRootElement();
       
        for (int i = 0; i < 20000; i++) {
            root.appendChild(dataElement.copy());
        }
       
        System.out.println("Ready to bench");
        Thread.sleep(5000);
       
View Full Code Here

Examples of nu.xom.Node.copy()

            atomics.append(' ');
          }
          atomics.append(value);
        } else if (parent != null) {
          if (size > 1 && !identities.add(result)) {
            result = result.copy(); // multiple identical nodes in results
//            throw new MultipleParentException(
//            "XQuery morpher result sequence must not contain multiple identical nodes");
          }
          boolean isRoot = parent instanceof Document && node instanceof Element;
          if (!isInitialized) {
View Full Code Here

Examples of nu.xom.Text.copy()


    public void testCopyisNotACDATASection() {
       
        Text c1 = new Text("test");
        Node c2 = c1.copy();
        assertEquals(Text.class, c2.getClass());

    }

View Full Code Here

Examples of nu3a.math.N3Vector3D.copy()

    if (vertexes.size() > 2) {
      try {
        N3Vector3D normal = getPolygonNormal();
        normals.clear();
        for (int i = 0; i < vertexes.size(); i++)
          normals.add(normal.copy());
      } catch (Exception e) {
      }
    }
  }
View Full Code Here

Examples of opennlp.ccg.synsem.Category.copy()

          LF convertedLF = null;
          String predInfo = null;
          if (cat.getLF() != null) {
        // convert LF
        LF flatLF = cat.getLF();
        cat = cat.copy();
        Nominal index = cat.getIndexNominal();
        convertedLF = HyloHelper.compactAndConvertNominals(flatLF, index, thisParse);
        // get pred info
        predInfoMap.clear();
        Testbed.extractPredInfo(flatLF, predInfoMap);
View Full Code Here

Examples of org.analyse.core.modules.ClipboardInterface.copy()

            }
        } else if (action.equals(Constantes.COPY)) {
            ClipboardInterface c;
            try {
                c = (ClipboardInterface) p;
                c.copy();
            } catch (ClassCastException exp) {
                System.err.println(exp);
            }
        } else if (action.equals(Constantes.PASTE)) {
            ClipboardInterface c;
View Full Code Here

Examples of org.apache.activegroups.command.ElectionMessage.copy()

                            } else {
                                processEntryMessage(entryMsg, replyTo, id);
                            }
                        } else if (payload instanceof ElectionMessage) {
                            ElectionMessage electionMsg = (ElectionMessage) payload;
                            electionMsg = electionMsg.copy();
                            processElectionMessage(electionMsg, replyTo, id);
                        }
                    } else if (messageType.equals(MESSAGE_TYPE)) {
                        processGroupMessage(memberId, id, replyTo, payload);
                    } else {
View Full Code Here

Examples of org.apache.activegroups.command.EntryMessage.copy()

                    if (messageType.equals(STATE_TYPE)) {
                        if (payload instanceof Member) {
                            handleHeartbeats((Member) payload);
                        } else if (payload instanceof EntryMessage) {
                            EntryMessage entryMsg = (EntryMessage) payload;
                            entryMsg = entryMsg.copy();
                            if (entryMsg.isLockUpdate()) {
                                processLockUpdate(entryMsg, replyTo, id);
                            } else if (entryMsg.isMapUpdate()) {
                                processMapUpdate(entryMsg);
                            } else {
View Full Code Here

Examples of org.apache.activemq.ActiveMQConnectionFactory.copy()

     * @throws URISyntaxException
     */
    synchronized private ActiveMQConnectionFactory createConnectionFactory(ActiveMQConnectionRequestInfo info) throws JMSException {
        ActiveMQConnectionFactory factory = connectionFactory;
        if (factory != null && info.isConnectionFactoryConfigured()) {
            factory = factory.copy();
        }
        else if (factory == null) {
            factory = new ActiveMQConnectionFactory();
        }
        info.configure(factory);
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.