Examples of Document


Examples of org.brain.pojos.Document

   
   
    Treemenu treeMenu = DBOperate.getTreeMenu(Integer.parseInt(treemenu.getCurrentType1()));
    Documenttype documentType = DBOperate.getDocumenttype(Integer.parseInt(documenttype.getTypeId()));
   
    Document document = new Document();
   
    document.setTreemenu(treeMenu);
    document.setDocumenttype(documentType)
    document.setAuthor(author);
    document.setTitle(title);
    document.setKeywords(keywords);
    document.setThemewords(themewords);
    document.setSummary(summary);
    document.setClassify(classify);
   
    document.setCreatetime(new Date());
    document.setYears(years);
    //修改用户名称
    User user = ToolBean.getUserSession();
    document.setLink("file/"+user.getUsername()+"/"+link);
    document.setSecondauthor(user.getUsername());
    document.setSecondtitle(secondtitle);
    document.setPlaceofpublication(placeofpublication);
    document.setPress(press);
    document.setSerialnumber(serialnumber);
    document.setPagenumber(pagenumber);
    document.setReferencescited(referencescited);
    document.setVersion(version);
    document.setDate(date);
    document.setSimpletitle(simpletitle);
    document.setIsbn(isbn);
    document.setLabel(label);
    document.setNote(note);
    document.setImage("pic/"+user.getUsername()+"/"+image);
    document.setLanguage(language);
    document.setLastsearchtime(new Date());
    document.setEdittime(edittime);
 
    System.out.println("this is a test panel!");
    insertFlag = DBOperate.save(document);
    return "/documentAddResult";
     
View Full Code Here

Examples of org.carrot2.core.Document

    //... setup some documents elsewhere
    final Controller controller =
            ControllerFactory.createSimple();//<co id="crt2.controller.creation"/>
    documents = new ArrayList<Document>();
    for (int i = 0; i < titles.length; i++) {
      Document doc = new Document(titles[i], snippets[i],
              "file://foo_" + i + ".txt");
      documents.add(doc);
    }
    final ProcessingResult result = controller.process(documents,
            "red fox",
View Full Code Here

Examples of org.codehaus.preon.el.Document

    }

    @Test
    public void testSelectNonExistingProperty() {
        StringBuilder builder = new StringBuilder();
        Document document = new StringBuilderDocument(builder);
        String propertyName = "pi";
        Reference selected1 = createMock(Reference.class);
        Reference selected2 = createMock(Reference.class);
        expect(reference1.getType()).andReturn(String.class);
        expect(reference2.getType()).andReturn(String.class);
View Full Code Here

Examples of org.docx4j.wml.Document

   */
  public void refresh() {
   
    RelationshipsPart rels = wordMLPackage.getMainDocumentPart().getRelationshipsPart();
       
    Document doc = (Document)wordMLPackage.getMainDocumentPart().getJaxbElement();
   
    HeaderFooterPolicy previousHF = null;
    BooleanDefaultTrue evenAndOddHeaders = null;
   
    if ((wordMLPackage.getMainDocumentPart().getDocumentSettingsPart() != null) &&
View Full Code Here

Examples of org.dom4j.Document

            throw new RuntimeException(ex);
        }
    }

    public Document createDocument() {
        Document document = DocumentHelper.createDocument();
        Element timefinderEl = document.addElement("timefinder"/*, "xmlnsValue"*/);
        timefinderEl.addAttribute("version", "4.1");

        writeElement(settings, timefinderEl);

        for (Dao<? extends DBInterface> dao : pool.getDaos()) {
View Full Code Here

Examples of org.eaxy.Document

    protected double unitsPerMeter;

    protected SkeletalMeshDataBuilder skeletonBuilder;

    protected void parseSkeletalMeshData(InputStream inputStream) throws ColladaParseException, IOException {
        Document document = Xml.readAndClose(inputStream);
        Element rootElement = document.getRootElement();

        parseMeshData(rootElement);
        parseSkeletalMeshData(rootElement);
    }
View Full Code Here

Examples of org.eclipse.jface.text.Document

            DefaultCodeFormatterConstants.createAlignmentValue(false, DefaultCodeFormatterConstants.WRAP_COMPACT,
            DefaultCodeFormatterConstants.INDENT_BY_ONE));
        options.put(JavaCore.COMPILER_CODEGEN_TARGET_PLATFORM, JavaCore.VERSION_1_5);
        options.put(JavaCore.COMPILER_SOURCE, JavaCore.VERSION_1_5);
        options.put(JavaCore.COMPILER_COMPLIANCE, JavaCore.VERSION_1_5);
        Document doc = new Document(m_compilationUnit.toString());
        CodeFormatter fmtr = ToolFactory.createCodeFormatter(options);
        String text = doc.get();
        TextEdit edits = fmtr.format(CodeFormatter.K_COMPILATION_UNIT, text, 0, text.length(), 0, null);
        File gendir = m_package.getGenerateDirectory();
        if (gendir != null) {
            try {
                File file = new File(gendir, m_name + ".java");
View Full Code Here

Examples of org.eclipse.xtext.xdoc.xdoc.Document


  @Override
  public void testGenCodeWithLanguage() throws Exception {
    XdocFile file = pTest.getDocFromFile(ParserTest.TEST_FILE_DIR + "codeWithLanguageTest.xdoc");
    Document doc = (Document) file.getMainSection();
    generate(doc);
    validate(EXPECTATION_DIR + "codeWithLanguage.html", RESULT_DIR + "mytestmodel.xdoc-0.html");
  }
View Full Code Here

Examples of org.elasticsearch.index.mapper.ParseContext.Document

    @Override
    public void postParse(ParseContext context) throws IOException {
        // In the case of nested docs, let's fill nested docs with version=1 so that Lucene doesn't write a Bitset for documents
        // that don't have the field. This is consistent with the default value for efficiency.
        for (int i = 1; i < context.docs().size(); i++) {
            final Document doc = context.docs().get(i);
            doc.add(new NumericDocValuesField(NAME, 1L));
        }
    }
View Full Code Here

Examples of org.galagosearch.core.parse.Document

    return stopwords.contains(word);
  }

  public String[] processContent(String text) {
    TagTokenizer tokenizer = new TagTokenizer();
    Document doc = null;

    try {
      doc = tokenizer.tokenize(text);
    } catch (IOException e) {
      e.printStackTrace();
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.