Examples of transform()


Examples of nz.co.invensysenergy.proj.schemaUnitTest.utils.TransformerFacade.transform()

   */
  public void testThrownException() throws Exception {
    SchemaUnitTest.setSchemaFile("examples/preValidationTransformation/schema.xsd");
    TransformerFacade uut = new TransformerFacade(new StreamSource(this.getClass().getResourceAsStream("testStylesheet.xsl"), "testStylesheet.xsl"));
    try {
      uut.transform(new StreamSource("examples/preValidationTransformation/testSuite.xml"), new DOMResult());
      fail("Expected an exception to be thrown");
    } catch (TransformerException e) {
      // TODO This test fails and I can't figure out what is going on
//      assertEquals("This Transformation Always Terminates", e.getMessage());
    }

Examples of nz.govt.natlib.meta.DoNothingTransformer.transform()

              .getXMLBaseURL()
              + "/" + outDTD);
      handler.addListener(listener);
      adapter.adapt(file, handler);

      transformer.transform(new ByteArrayInputStream(bout.toByteArray()),
          out);
    } finally {
      if (out != null) {
        out.close();
      }

Examples of nz.govt.natlib.meta.TransformProcessor.transform()

    TransformProcessor transformer = TransformProcessor.getInstance(adapter
        .getOutputType(), getOutputType());
   
    // Transform the document into the target format.
    LogManager.getInstance().logMessage(LogMessage.WORTHLESS_CHATTER, "Finished Transformation");
    transformer.transform(new ByteArrayInputStream(bout.toByteArray()),
        byteOut);
    bout.close();
  }

  protected void endOutputFile(PropertySource props, OutputStream file)

Examples of oracle.toplink.essentials.internal.weaving.StaticWeaveClassTransformer.transform()

                    continue;
                }
               
                //If everything is OK so far, we perform the weaving. we need three paramteres in order to
                //class to perform weaving for that class, the class name,the class object and class bytes.
                transferredClassBytes = classTransformer.transform(className.replace('.', '/'), thisClass, originalClassBytes);
               
                //if transferredClassBytes is null means the class dose not get woven.
                if(transferredClassBytes!=null){
                    swoh.addEntry(newEntry, transferredClassBytes);
                } else{

Examples of oracle.xml.jaxp.JXTransformer.transform()

            }

            if ((result instanceof SAXResult) && (!isFragment())) {
                ((SAXResult)result).getHandler().startDocument();
            }
            transformer.transform(source, result);
            if ((result instanceof SAXResult) && (!isFragment())) {
                ((SAXResult)result).getHandler().endDocument();
            }
        } catch (TransformerException e) {
            throw XMLPlatformException.xmlPlatformTransformException(e);

Examples of org.activiti.crystalball.simulator.delegate.event.impl.EventLogTransformer.transform()

    // transform log events
    List<EventLogEntry> eventLogEntries = managementService.getEventLogEntries(null, null);

    EventLogTransformer transformer = new EventLogTransformer(getTransformers());

    List<SimulationEvent> simulationEvents = transformer.transform(eventLogEntries);

    SimpleEventCalendar eventCalendar = new SimpleEventCalendar(processEngine.getProcessEngineConfiguration().getClock(), new SimulationEventComparator());
    eventCalendar.addEvents(simulationEvents);

    // replay process instance run

Examples of org.andromda.core.transformation.Transformer.transform()

            final String[] uris = model.getUris();
            final int uriNumber = uris.length;
            final InputStream[] streams = new InputStream[uriNumber];
            for (int ctr = 0; ctr < uriNumber; ctr++)
            {
                streams[ctr] = transformer.transform(
                        uris[ctr],
                        model.getTransformations());
            }

            // - now load the models into the repository

Examples of org.apache.batik.ext.awt.g2d.GraphicContext.transform()

        gc.shear(.5, .5);
        gc.scale(20, 20);

        AffineTransform txf = new AffineTransform();
        txf.translate(60, 60);
        gc.transform(txf);

        String svgTransform = SVGTransform.toSVGTransform(gc);
        System.out.println("SVG Transform: " + svgTransform);

        gc.setTransform(new AffineTransform());

Examples of org.apache.cayenne.exp.Expression.transform()

         * Attaching root Db entity's qualifier
         */
        if (getDbEntity() != null) {
            Expression dbQualifier = getDbEntity().getQualifier();
            if (dbQualifier != null) {
                dbQualifier = dbQualifier.transform(new DbEntityQualifierTransformer());

                qualifier = qualifier == null ? dbQualifier : qualifier
                        .andExp(dbQualifier);
            }
        }

Examples of org.apache.cocoon.components.xslt.XSLTProcessor.transform()

      StreamResult result = new StreamResult(writer);

      XSLTProcessor transformer
        = (XSLTProcessor)componentManager.lookup(XSLTProcessor.ROLE);

      transformer.transform(this, stylesheet, params, result);

      componentManager.release(transformer);

      return new XScriptObjectResult(xscriptManager, writer.toString());
    }
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.