Examples of NameGenerator


Examples of org.pentaho.reporting.libraries.repository.NameGenerator

      outputProcessor.setInterceptor(interceptor);
      streamReportProcessor.processReport();
      streamReportProcessor.close();

      final ContentLocation contentLocation = getBodyContentLocation();
      final NameGenerator nameGenerator = getBodyNameGenerator();
      final ContentItem contentItem =
          contentLocation.createItem(nameGenerator.generateName(null, mimeType));
      final BufferedImage image = interceptor.getImage();
      final ImageEncoder imageEncoder = ImageEncoderRegistry.getInstance().createEncoder(mimeType);
      final OutputStream outputStream = contentItem.getOutputStream();
      imageEncoder.encodeImage(image, outputStream, quality, alphaChannel);
      outputStream.close();
View Full Code Here

Examples of org.pentaho.reporting.libraries.repository.NameGenerator

    {
      final MasterReport masterReport = getReport();
      final Configuration configuration = masterReport.getConfiguration();

      final ContentLocation contentLocation = getBodyContentLocation();
      final NameGenerator nameGenerator = getBodyNameGenerator();
      final ContentItem contentItem =
          contentLocation.createItem(nameGenerator.generateName(null, "text/xml"));
      final OutputStream outputStream = contentItem.getOutputStream();

      try
      {
        final XmlPageOutputProcessor outputProcessor =
View Full Code Here

Examples of org.pentaho.reporting.libraries.repository.NameGenerator

    {
      final MasterReport masterReport = getReport();
      final Configuration configuration = masterReport.getConfiguration();

      final ContentLocation contentLocation = getBodyContentLocation();
      final NameGenerator nameGenerator = getBodyNameGenerator();
      final ContentItem contentItem =
          contentLocation.createItem(nameGenerator.generateName(null, "text/plain"));
      final OutputStream outputStream = contentItem.getOutputStream();

      try
      {
        final String cpiText = configuration.getConfigProperty
View Full Code Here

Examples of org.pentaho.reporting.libraries.repository.NameGenerator

    {
      final MasterReport masterReport = getReport();
      final Configuration configuration = masterReport.getConfiguration();

      final ContentLocation contentLocation = getBodyContentLocation();
      final NameGenerator nameGenerator = getBodyNameGenerator();
      final ContentItem contentItem =
          contentLocation.createItem(nameGenerator.generateName(null, "application/pdf"));
      final OutputStream outputStream = contentItem.getOutputStream();

      try
      {
        final PdfOutputProcessor outputProcessor = new PdfOutputProcessor(configuration, outputStream);
View Full Code Here

Examples of uk.ac.bbsrc.tgac.miso.core.service.naming.NameGenerator

      if (misoProperties.containsKey("miso.naming.scheme."+classname) && misoProperties.get("miso.naming.scheme."+classname).equals(mns.getSchemeName())) {
        for (String key : misoProperties.keySet()) {
          if (key.startsWith("miso.naming.generator."+classname)) {
            String genprop = key.substring(key.lastIndexOf(".")+1);
            NameGenerator ng = nameGeneratorResolverService.getNameGenerator(misoProperties.get("miso.naming.generator."+classname+"."+genprop));
            if (ng != null) {
              mns.registerCustomNameGenerator(genprop, ng);
            }
          }
        }
View Full Code Here

Examples of uk.co.halfninja.randomnames.NameGenerator

   * Not actually testing anything here.. just printing things out.
   * Fun!
   */
  @Test
  public void test() {
    NameGenerator generator = NameGenerators.standardGenerator();
    for (int i=0; i<10; i++) {
      System.out.println( generator.generate(Gender.male) );
      System.out.println( generator.generate(Gender.female) );
    }
  }
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.