Examples of ModelParser


Examples of org.folg.gedcom.parser.ModelParser

    out.close();
  }

  private void convert55File(File inFile, OutputStream outputStream) throws SAXParseException, IOException {
    ModelParser modelParser = new ModelParser();
    Gedcom gedcom = modelParser.parseGedcom(inFile);
    gedcom.createIndexes();

    if (outputStream != null) {
      GedcomMapper mapper = new GedcomMapper();
      GedcomxEntrySerializer serializer;
View Full Code Here

Examples of samples.ModelParser

      IOException {
    CharStream input = new ANTLRFileStream(
        "src/main/java/samples/CompositeModel.java");
    ModelLexer lex = new ModelLexer(input);
    CommonTokenStream tokens = new CommonTokenStream(lex);
    ModelParser p = new ModelParser(tokens);
    p.compilationUnit();
    assertTrue(errContent.toString().isEmpty());
  }
View Full Code Here

Examples of spiderman.plugin.util.ModelParser

//    this.target = target;
//    this.page = page;
//  }
 
  public List<Map<String, Object>> parse(Task task, Target target, Page page, List<Map<String, Object>> models) throws Exception {
    List<Map<String, Object>> results = new ModelParser(task, target, listener).parse(page);
   
    //用来记录分页里已经解析的url
    Set<String> visitedUrls = new HashSet<String>();
    visitedUrls.add(task.url);
   
View Full Code Here

Examples of spiderman.plugin.util.ModelParser

      return ;
   
    nextModel.getField().addAll(isAlsoParseInNextPageFields);
    tgt.setModel(nextModel);
   
    ModelParser parser = new ModelParser(nextTask, tgt, listener);
    Page nextPageResult = fr.getPage();
    List<Map<String, Object>> nextMaps = parser.parse(nextPageResult);
    if (nextMaps == null)
      return ;
   
    for (Map<String, Object> nextMap : nextMaps){
      for (Iterator<Entry<String, Object>> it = nextMap.entrySet().iterator(); it.hasNext();){
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.