Examples of toXML()


Examples of org.jivesoftware.smackx.packet.Jingle.toXML()

      assertTrue(iqReceived instanceof Jingle);

      Jingle jin = (Jingle) iqReceived;
     
      System.out.println("Sent:     " + iqSent.toXML());
      System.out.println("Received: " + jin.toXML());
    }   
  }

  /**
   * Simple class for testing an IQ...
View Full Code Here

Examples of org.jpokemon.trainer.Player.toXml()

    File file = new File(JPokemonServer.savepath, playerId + ".jpkmn");

    try {
      Writer writer = new BufferedWriter(new PrintWriter(file));
      writer.write(player.toXml().printToString(0, "\t"));
      writer.close();
    }
    catch (IOException e) {
      e.printStackTrace();
    }
View Full Code Here

Examples of org.kie.api.builder.model.KieModuleModel.toXML()

        KieBaseModel kbModel = model.newKieBaseModel( DEFAULT_KIEBASE )
                .setDefault( true )
                .addPackage( BASE_PACK )
                .setEventProcessingMode( EventProcessingOption.STREAM );

        kfs.writeKModuleXML( model.toXML() );

        KieBuilder kb = ks.newKieBuilder( kfs );

        kb.buildAll();
        if ( kb.getResults().hasMessages( Message.Level.ERROR ) ) {
View Full Code Here

Examples of org.kie.builder.KieModuleModel.toXML()

        KieSessionModel ksession1 = kieBaseModel1.newKieSessionModel("KSession1")
                .setType(KieSessionType.STATEFUL)
                .setClockType( ClockTypeOption.get("realtime") );

        kieFileSystem
                .writeKModuleXML(kproj.toXML())
                .writePomXML(getPom(releaseId))
                .write("src/main/resources/" + kieBaseModel1.getName() + "/rule1.drl", createDRLForJavaSource(value))
                .write("src/main/java/org/kie/test/Bean.java", createJavaSource(factor));

        KieBuilder kieBuilder = ks.newKieBuilder(kieFileSystem);
View Full Code Here

Examples of org.kite9.framework.serialization.XMLHelper.toXML()

  public void serve(WorkItem item, OutputStream os) throws IOException {

    try {
      XMLHelper helper = new XMLHelper();
      String xml = helper.toXML(item);

      URL u = new URL(url);
      URLConnection conn = createConnection(u);

      OutputStream params = conn.getOutputStream();
View Full Code Here

Examples of org.languagetool.rules.patterns.PatternRule.toXML()

      for (Rule rule : rules) {
        if (rule.getId().equals(ruleId)) {
          // can only display pattern rules
          try {
            PatternRule patternRule = (PatternRule) rule;
            String tempRuleString = patternRule.toXML();
            tempRuleString = tempRuleString.replaceAll("\\<",
                "&lt;").replaceAll("\\>", "&gt;");
            fetchedRuleString = fetchedRuleString.concat(
                tempRuleString).concat("<br>");
            break;
View Full Code Here

Examples of org.milyn.javabean.binding.xml.XMLBinding.toXML()

        String poXML = StreamUtils.readStreamAsString(getClass().getResourceAsStream("po.xml"));
        POType po = xmlBinding.fromXML(new StringSource(poXML), POType.class);

        StringWriter writer = new StringWriter();
        xmlBinding.toXML(po, writer);

        XMLUnit.setIgnoreWhitespace(true);
        XMLUnit.compareXML(poXML, writer.toString());
    }
}
View Full Code Here

Examples of org.moxie.Metadata.toXML()

    Metadata metadata = new Metadata(dependency, isSnapshotMetadata);
    if (oldMetadata != null) {
      metadata.merge(oldMetadata);
    }

    FileUtils.writeContent(metadataFile, metadata.toXML());
    metadataFile.setLastModified(metadata.lastUpdated.getTime());
   
    // add metadata file to installed artifacts path
    reference(metadataFile);
  }
View Full Code Here

Examples of org.one.stone.soup.xml.XmlElement.toXml()

     
      socket = new Socket(host,port);
      socket.getOutputStream().write( ("GET /OpenForum/Multicaster/Share HTTP/1.1\r\n").getBytes() );
      socket.getOutputStream().write( ("\r\n\r\n").getBytes() );
     
      socket.getOutputStream().write(header.toXml().getBytes());
      socket.getOutputStream().flush();
     
      recorder = new WebCamRecorder(socket.getOutputStream(),this,deviceName);
      recorder.startRecording();
      recording = true;
View Full Code Here

Examples of org.openbravo.dal.xml.EntityXMLConverter.toXML()

    exc.setOptionIncludeReferenced(true);
    exc.setAddSystemAttributes(false);

    @SuppressWarnings("unchecked")
    final List<BaseOBObject> list = (List<BaseOBObject>) obc.list();
    final String xml = exc.toXML(list);
    log.debug(xml);
    return xml;
  }

  /**
 
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.