Examples of toXml()


Examples of reportgen.ren.report.extendedformat.table.TableFormat.toXML()

        int index = formatsTable.getSelectionModel().getLeadSelectionIndex();
        if(index == -1) {
            return;
        }
        TableFormat tfOrigin = fields.get(index);
        Element stream = tfOrigin.toXML();

        final LinkedList<Atom> atoms = new LinkedList<Atom>();
        Context context = query.getContext3Stage(new AtomRegistrar() {
            @Override
            public void registerAtom(Atom atom) {
View Full Code Here

Examples of simplenlg.framework.WordElement.toXML()

          word = lex.getWord(base, LexicalCategory.NOUN); // Kilgarriff;s interjections are mostly nouns in the lexicon
       
        if (word == null)
          System.out.println("Missing " + base + ":" + cat);
        else
          xmlFile.write(word.toXML());
        line = wordListFile.readLine();;
      }
      xmlFile.write(String.format("</lexicon>%n"));
      wordListFile.close();
      xmlFile.close();
View Full Code Here

Examples of uk.ac.cam.ch.wwmm.oscar3.subtypes.NESubtypes.toXML()

    Element modelRoot = new Element("model");
    modelRoot.appendChild(ExtractTrainingData.getInstance().toXML());
    MEMM memm = MEMMSingleton.getInstance();
    if(memm != null) modelRoot.appendChild(memm.writeModel());
    NESubtypes subtypes = NESubtypes.getInstance();
    if(subtypes.OK) modelRoot.appendChild(subtypes.toXML());
    return new Document(modelRoot);
  }
 
  /**Examines an XML document produced with MakeModel, and uses the data
   * to initialise the relevant singletons.
View Full Code Here

Examples of uk.ac.cam.ch.wwmm.ptc.experimental.classifiers.MultinomialNaiveBayes.toXML()

   
    if(true) {
      ce = new ClassificationEvaluator();
      MultinomialNaiveBayes mnb = new MultinomialNaiveBayes(bagEvents);
     
      Element elem = mnb.toXML();
      Document doc = new Document(elem);
      Serializer ser = new Serializer(System.out);
      //ser.setIndent(2);
      ser.write(doc);
      mnb = new MultinomialNaiveBayes(elem);
View Full Code Here

Examples of uk.ac.osswatch.simal.model.IPerson.toXML()

                e);
  }

    if (command.isXML()) {
      try {
      return person.toXML();
      } catch (SimalRepositoryException e) {
        throw new SimalAPIException(
            "Unable to get XML representation of project from the repository",
            e);
      }
View Full Code Here

Examples of uk.ac.osswatch.simal.model.IProject.toXML()

  }
 
  @Test
  public void testProjectToXMLAfterImport() throws SimalRepositoryException {
    IProject project = SimalRepositoryFactory.getProjectService().getProject("http://jisc.ac.uk/project#10");
    String xml = project.toXML();
    assertTrue("There appears to be no project identifer in the returned XML", xml.contains("http://jisc.ac.uk/project#10"));
  }

}
View Full Code Here

Examples of zephyropen.command.Command.toXML()

      }
    }
   
    // share to group
    devs.send();
    constants.info( devs.toXML(), this);
  }
 
  /*
  public static void sendStatus(String string) {
    Command status = new Command();
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.