Examples of createDocument()


Examples of ca.carleton.gcrc.couch.client.CouchDb.createDocument()

      }
     
      // Update document before saving
      CouchNunaliitUtils.adjustDocumentForStorage(doc, userContext);
   
      userCouchDb.createDocument(doc);
     
      logger.info("onLoad update: "+doc.optString("_id")+" -> "+fileNames);
    } catch(Exception e) {
      logger.error("Unable to create an upload request",e);
    }
View Full Code Here

Examples of com.digitalpebble.classification.TextClassifier.createDocument()

        // load classifier
        TextClassifier classifier = TextClassifier
            .getClassifier(new File(resourceDir));
        // create a document from a String
        String[] tokens = Tokenizer.tokenize(text.toString(), true);
        Document doc = classifier.createDocument(tokens);
        // classify
        double[] scores = classifier.classify(doc);
        // get best label
        String label = classifier.getBestLabel(scores);
        System.out.println("Classified as : "+label);
View Full Code Here

Examples of com.google.enterprise.connector.notes.client.NotesDatabase.createDocument()

    expect(docSrc.getAttachment(attachmentName)).andReturn(embObj);
    expect(embObj.getType()).andReturn(NotesEmbeddedObject.EMBED_ATTACHMENT);
    expect(embObj.getFileSize()).andReturn(1);

    NotesDocument docAttach = createNiceMock(NotesDocument.class);
    expect(cdb.createDocument()).andReturn(docAttach);
    Capture<String> captureContentPath = new Capture<String>();
    expect(docAttach.replaceItemValue(eq(NCCONST.ITM_CONTENTPATH),
        capture(captureContentPath))).andReturn(null);
    replay(ncs, ns, cdb, crawlQ, docCrawl, docSrc, docAttach, embObj);
View Full Code Here

Examples of com.intellij.openapi.editor.EditorFactory.createDocument()

    private void createEditors(JUnitGeneratorSettings settings) {
        EditorFactory factory = EditorFactory.getInstance();
        //create the editors
        for (Map.Entry<String, String> entry : settings.getVmTemplates().entrySet()) {
            final Document velocityTemplate = factory.createDocument(entry.getValue() != null ? entry.getValue() : "");
            try {
                final Editor editor =
                        factory.createEditor(velocityTemplate, this.project, FileTypeManager.getInstance().getFileTypeByExtension("vm"), false);
                editor.getContentComponent().addKeyListener(new KeyAdapter() {
                    @Override
View Full Code Here

Examples of com.ipc.oce.objects.OCDocumentManager.createDocument()

  }
 
  @Test
  public void createAndDelete() throws JIException {
    OCDocumentManager manager = app.getDocumentManager("СчетНаОплатуПокупателю");
    OCDocumentObject doc = manager.createDocument();
    System.out.println("isNew1: " + doc.isNew() + " [before write]");
    doc.setNumber("XXX-000-002");
    doc.setDate(new Date());
    doc.write();
    System.out.println("isNew2: " + doc.isNew() + " [after write]");
View Full Code Here

Examples of com.volantis.mcs.dom.DOMFactory.createDocument()

            SAXException {

        // Create a document where e1 parent of e2 parent of e3 and where e2
        // has no styles set.
        DOMFactory factory = DOMFactory.getDefaultInstance();
        Document document = factory.createDocument();
        Element root = factory.createElement("root");
        document.addNode(root);
        Element e1 = factory.createElement("e1");
        e1.setStyles(StylesBuilder.getCompleteStyles("line-height: normal"));
        root.addTail(e1);
View Full Code Here

Examples of commonj.sdo.helper.XMLHelper.createDocument()

            name = Character.toLowerCase(name.charAt(0)) + name.substring(1, name.length());
        }

        try {
            DOMResult domResult = new DOMResult(DOMHelper.newDocument());
            XMLDocument xmlDoc = helper.createDocument(source, null, name);
            helper.save(xmlDoc, domResult, null);
            return node2NodeInfoTransformer.transform(domResult.getNode(), context);
        } catch (Exception e) {
            throw new TransformationException(e);
        }
View Full Code Here

Examples of de.fhg.igd.mongomvcc.VFactory.createDocument()

    // Checkout the "master" branch
    VBranch master = db.checkout(VConstants.MASTER);
   
    // 2. Put something into the index
    VCollection persons = master.getCollection("persons");
    Map<String, Object> elvis = factory.createDocument();
    elvis.put("name", "Elvis");
    elvis.put("age", 3);
    persons.insert(elvis);
   
    // insert another person
View Full Code Here

Examples of de.fhg.igd.mongomvcc.impl.MongoDBVFactory.createDocument()

    // Checkout the "master" branch
    VBranch master = db.checkout(VConstants.MASTER);
   
    // 2. Put something into the index
    VCollection persons = master.getCollection("persons");
    Map<String, Object> elvis = factory.createDocument();
    elvis.put("name", "Elvis");
    elvis.put("age", 3);
    persons.insert(elvis);
   
    // insert another person
View Full Code Here

Examples of er.pdf.builder.FOPBuilder.createDocument()

    ByteArrayOutputStream os = new ByteArrayOutputStream();
    try {
      fopb.setConfiguration(_config);
      fopb.setXML(xml);
      fopb.setXSL(fopxsl);
      fopb.createDocument(os);
      os.close();
      NSData returnNSData = new NSData(os.toByteArray());
      if (logger.isDebugEnabled()) {
        logger.debug("xml2Fop2Pdf(String, String, NSDictionary<String,Object>) - end - return value=" + returnNSData); //$NON-NLS-1$
      }
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.