Examples of XmlTranslator


Examples of org.teiid.core.types.XMLTranslator

      final Source xmlParam = xmlSource;
      TransformerFactory factory = TransformerFactory.newInstance();
            final Transformer transformer = factory.newTransformer(styleSource);
           
      //this creates a non-validated sqlxml - it may not be valid xml/root-less xml
      SQLXMLImpl result = XMLSystemFunctions.saveToBufferManager(context.getBufferManager(), new XMLTranslator() {
       
        @Override
        public void translate(Writer writer) throws TransformerException {
                  //transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes"); //$NON-NLS-1$
                  // Feed the resultant I/O stream into the XSLT processor
View Full Code Here

Examples of org.teiid.core.types.XMLTranslator

    }
    if (!valueExists) {
      return null;
    }

    XMLType result = new XMLType(XMLSystemFunctions.saveToBufferManager(context.getBufferManager(), new XMLTranslator() {
     
      @Override
      public void translate(Writer writer) throws TransformerException,
          IOException {
        try {
View Full Code Here

Examples of org.teiid.core.types.XMLTranslator

   * @throws TeiidComponentException
   * @throws TeiidProcessingException
   */
  public static XMLType xmlElement(CommandContext context, final String name,
      final Evaluator.NameValuePair<String>[] namespaces, final Evaluator.NameValuePair<?>[] attributes, final List<?> contents) throws TeiidComponentException, TeiidProcessingException {
    XMLType result = new XMLType(XMLSystemFunctions.saveToBufferManager(context.getBufferManager(), new XMLTranslator() {
     
      @Override
      public void translate(Writer writer) throws TransformerException,
          IOException {
        try {
View Full Code Here

Examples of org.teiid.core.types.XMLTranslator

    }

  private static SQLXML jsonToXml(CommandContext context,
      final String rootName, final Reader r) throws TeiidComponentException,
      TeiidProcessingException {
    XMLType result = new XMLType(XMLSystemFunctions.saveToBufferManager(context.getBufferManager(), new XMLTranslator() {
     
      @Override
      public void translate(Writer writer) throws TransformerException,
          IOException {
          try {
View Full Code Here

Examples of org.teiid.core.types.XMLTranslator

    }
    Item next = iter.next();
    if (next != null) {
      type = Type.CONTENT;
    }
    SQLXMLImpl xml = XMLSystemFunctions.saveToBufferManager(bufferManager, new XMLTranslator() {
     
      @Override
      public void translate(Writer writer) throws TransformerException,
          IOException {
        Properties props = new Properties();
View Full Code Here

Examples of q_impress.pmi.lib.jmt.xml.XmlTranslator

   
    // load execution hosts
    loadDevices();
   
    // translate to XML
    XmlTranslator xmlTranslator = new XmlTranslator(decFactory, deploymentDevices, activitiesInfo.values(), outStream);
    try {
      xmlTranslator.translate();
    } catch (Exception 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.