Examples of toXml()


Examples of org.apache.vinci.transport.document.AFrame.toXML()

        throw new ServiceException(responseFrame.fgetString("Error"));
      }

      if (System.getProperty("SHOW_RAW_RESPFRAME") != null) {
        UIMAFramework.getLogger(this.getClass()).log(Level.INFO,
                " responseFrame from service::" + serviceName + "\n" + responseFrame.toXML());
      }

      if (responseFrame != null && responseFrame.fgetAFrame("DATA") == null) {
        // No annotations found in reply so just leave
        return aCasList;
View Full Code Here

Examples of org.apache.wookie.w3c.impl.AccessEntity.toXml()

    Element element = new Element("access");
    element.setAttribute("origin","http://apache.org");
    element.setAttribute("subdomains","true");
    AccessEntity accessEntity = new AccessEntity();
    accessEntity.fromXML(element);
    Element outputElement = accessEntity.toXml();
    assertEquals("http://apache.org:80",outputElement.getAttributeValue("origin"));
  }
}
View Full Code Here

Examples of org.apache.wookie.w3c.updates.UpdateDescription.toXML()

  }

  @Test
  public void export(){
     UpdateDescription desc = new UpdateDescription("http://localhost");
     Element el = desc.toXML();
     assertEquals("http://localhost", el.getAttributeValue(IW3CXMLConfiguration.HREF_ATTRIBUTE));
    
  }
}
View Full Code Here

Examples of org.apache.wookie.w3c.updates.UpdateDescriptionDocument.toXml()

    el.addContent(details);
    doc.setRootElement(el);
    udd.fromXML(doc);
    // Export to XML
    doc = new Document();
    doc.setRootElement(udd.toXml());
    // Read in again - should be a valid UDD
    udd.fromXML(doc);
    assertEquals("1.0", udd.getVersionTag());
    assertEquals("http://incubator.apache.org/wookie/test.wgt", udd.getUpdateSource().toString());
    assertEquals("test", udd.getDetails("en"));
View Full Code Here

Examples of org.dbpedia.spotlight.web.rest.output.Annotation.toXML()

        try {
            String textToProcess = ServerUtils.getTextToProcess(text, inUrl);
            Annotation a = getAnnotation(textToProcess, confidence, support, dbpediaTypes, sparqlQuery, policy, coreferenceResolution, spotter, disambiguatorName, clientIp);
            LOG.info("XML format");
            String content = a.toXML();
            return ServerUtils.ok(content);
        } catch (Exception e) {
            throw new WebApplicationException(Response.status(Response.Status.BAD_REQUEST). entity(e.getMessage()).type(MediaType.TEXT_XML).build());
        }
    }
View Full Code Here

Examples of org.drools.decisiontable.model.Ruleset.toXML()

        Ruleset ruleset = new Ruleset( "xyz" );
        ruleset.addRule( rule );
        try
        {          
            RuleSetLoader ruleSetLoader = new RuleSetLoader();          
            ruleSetLoader.addFromReader(new StringReader( ruleset.toXML( ) ) );           
           
            RuleBaseLoader ruleBaseLoader = new RuleBaseLoader();
            ruleBaseLoader.addFromRuleSetLoader(ruleSetLoader);
            ruleBaseLoader.buildRuleBase();           
           
View Full Code Here

Examples of org.eweb4j.util.xml.XMLWriter.toXml()

        writer.setCheckStatck(true);
        writer.setSubNameAuto(true);
        writer.setClass(cls);
        writer.setRootElementName(null);
        this.context.getResponse().setContentType(MIMEType.XML);
        this.context.getWriter().print(writer.toXml());
      } else {
        this.context.getWriter().print("@Produces 注解暂时不支持JSON 、XML以外的渲染技术");
      }
     
      this.context.getWriter().flush();
View Full Code Here

Examples of org.exoplatform.container.xml.Configuration.toXML()

      if (config == null)
      {
         log.warn("The configuration of the RootContainer could not be found");
         return null;
      }
      return config.toXML();
   }

   /**
    * Calls the other method <code>addInitTask</code> with <code>ServletContext.getServletContextName()</code>
    * as portal container name
View Full Code Here

Examples of org.fao.oaipmh.responses.AbstractResponse.toXml()

      AbstractRequest  req = OaiPmhFactory.parse(context.getApplicationContext(), params);
      OaiPmhService    srv = hmServices.get(req.getVerb());
      AbstractResponse res = srv.execute(req, context);

      Element response = res.toXml();

      return Lib.createOaiRoot(url, params, response);
    }

    catch(OaiPmhException e)
View Full Code Here

Examples of org.freeplane.features.filter.condition.ASelectableCondition.toXml()

    saver.setName("filter_conditions");
    final Writer writer = new FileWriter(pathToFilterFile);
    for (int i = 0; i < filterConditionModel.getSize(); i++) {
      final ASelectableCondition cond = (ASelectableCondition) filterConditionModel.getElementAt(i);
      if (cond != null && !(cond instanceof NoFilteringCondition)) {
        cond.toXml(saver);
      }
    }
    final XMLWriter xmlWriter = new XMLWriter(writer);
    xmlWriter.write(saver, true);
    writer.close();
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.