Examples of generate()


Examples of org.apache.ws.jaxme.generator.sg.impl.ccsg.BeanSG.generate()

      throws SAXException {
    BeanSG beanSG = newBeanSG(pController, pJs);
    if (!pJs.isInterface()) {
      SerializableSG.makeSerializable(pController.getTypeSG().getSchema(), pJs);
    }
    beanSG.generate();
  }

  private BeanSG newBeanSG(ComplexTypeSG pController, JavaSource pJs)
      throws SAXException {
    if (pController.hasSimpleContent()) {
View Full Code Here

Examples of org.apache.ws.jaxme.generator.sg.impl.ccsg.DriverSG.generate()

  private void createXMLSerializer(ComplexTypeSG pController, JavaSource pSource)
      throws SAXException {
    pSource.addImplements(JMSAXDriver.class);
    DriverSG serializerSG = newSerializerSG(pController, pSource);
    serializerSG.generate();
    if (!pController.hasSimpleContent()) {
      ComplexContentSG ccSG = pController.getComplexContentSG();
      ParticleSG[] particles = ccSG.getElementParticles();
      for (int i = 0;  i < particles.length;  i++) {
        ParticleSG particle = particles[i];
View Full Code Here

Examples of org.apache.ws.jaxme.generator.sg.impl.ccsg.HandlerSG.generate()

  }

  private void createXMLHandler(ComplexTypeSG pController, JavaSource pJs) throws SAXException {
    pJs.addExtends(JMSAXElementParser.class);
    HandlerSG handlerSG = newHandlerSG(pController, pJs);
    handlerSG.generate();
  }

  public JavaSource getXMLHandler(ComplexTypeSG pController, JavaQName pQName) throws SAXException {
    final String mName = "getXMLHandler";
    log.finest(mName, "->", typeSG.getName());
View Full Code Here

Examples of org.apache.xmlgraphics.ps.FormGenerator.generate()

                                    (int)Math.round(dimensionsMpt.getHeight()));
                            gen.writeln("EndEPSF");
                        }
                       
                    };
                    formGen.generate(gen);
                } else if (img instanceof ImageRendered) {
                    ImageRendered imgRend = (ImageRendered)img;
                    RenderedImage ri = imgRend.getRenderedImage();
                    FormGenerator formGen = new ImageFormGenerator(
                            form.getName(), imageDescription,
View Full Code Here

Examples of org.apache.xmlgraphics.ps.ImageFormGenerator.generate()

                    RenderedImage ri = imgRend.getRenderedImage();
                    FormGenerator formGen = new ImageFormGenerator(
                            form.getName(), imageDescription,
                            info.getSize().getDimensionPt(),
                            ri, false);
                    formGen.generate(gen);
                } else if (img instanceof ImageXMLDOM) {
                    throw new UnsupportedOperationException(
                            "Embedding an ImageXMLDOM as a form isn't supported, yet");
                } else if (img instanceof ImageRawStream) {
                    final ImageRawStream raw = (ImageRawStream)img;
View Full Code Here

Examples of org.apache.xmlgraphics.ps.dsc.events.DSCComment.generate()

            page.generate(gen);
            pageOrTrailer = DSCTools.nextPageOrTrailer(parser, gen);
            if (pageOrTrailer == null) {
                reportInvalidDSC();
            } else if (!DSCConstants.PAGE.equals(pageOrTrailer.getName())) {
                pageOrTrailer.generate(gen);
                break;
            }
        }
       
        //Write the rest
View Full Code Here

Examples of org.apache.xmlgraphics.ps.dsc.events.DSCCommentDocumentNeededResources.generate()

               
                //Needed Resources
                DSCCommentDocumentNeededResources needed
                    = new DSCCommentDocumentNeededResources(
                            resTracker.getDocumentNeededResources());
                needed.generate(gen);

                //Write original comment that ends the header comments
                event.generate(gen);
                break;
            }
View Full Code Here

Examples of org.apache.xmlgraphics.ps.dsc.events.DSCCommentDocumentSuppliedResources.generate()

               
                //Supplied Resources
                DSCCommentDocumentSuppliedResources supplied
                    = new DSCCommentDocumentSuppliedResources(
                            resTracker.getDocumentSuppliedResources());
                supplied.generate(gen);
               
                //Needed Resources
                DSCCommentDocumentNeededResources needed
                    = new DSCCommentDocumentNeededResources(
                            resTracker.getDocumentNeededResources());
View Full Code Here

Examples of org.apache.xmlgraphics.ps.dsc.events.DSCCommentPage.generate()

        }
       
        //Process individual pages (and skip as necessary)
        while (true) {
            DSCCommentPage page = (DSCCommentPage)pageOrTrailer;
            page.generate(gen);
            pageOrTrailer = DSCTools.nextPageOrTrailer(parser, gen);
            if (pageOrTrailer == null) {
                reportInvalidDSC();
            } else if (!DSCConstants.PAGE.equals(pageOrTrailer.getName())) {
                pageOrTrailer.generate(gen);
View Full Code Here

Examples of org.apache.xmlgraphics.ps.dsc.events.DSCCommentPages.generate()

                reportInvalidDSC();
            }
            if (DSCTools.headerCommentsEndHere(event)) {
                //Set number of pages
                DSCCommentPages pages = new DSCCommentPages(pageCount);
                pages.generate(gen);

                PSFontUtils.determineSuppliedFonts(resTracker, fontInfo, fontInfo.getUsedFonts());
                registerSuppliedForms(resTracker, formResources);
               
                //Supplied Resources
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.