Package org.pentaho.reporting.engine.classic.core.util

Examples of org.pentaho.reporting.engine.classic.core.util.ReportProperties


        // we don't test whether our demo models are serializable :)
        report.setDataFactory(new TableDataFactory
            ("default", new DefaultTableModel()));
        // clear all report properties, which may cause trouble ...
        final ReportProperties p = report.getProperties();
        final Iterator keys = p.keys();
        while (keys.hasNext())
        {
          String key = (String) keys.next();
          if (p.get(key) instanceof Serializable == false)
          {
            p.put(key, null);
          }
        }

        final ByteArrayOutputStream bo = new ByteArrayOutputStream();
        try
View Full Code Here


   * @throws ReportWriterException if the report definition could not be written.
   */
  private void writePropertyRefs()
      throws IOException, ReportWriterException
  {
    final ReportProperties reportProperties = getReport().getProperties();
    final Iterator keys = reportProperties.keys();
    final XmlWriter writer = getXmlWriter();
    while (keys.hasNext())
    {
      final String name = (String) keys.next();
      final Object value = reportProperties.get(name);

      if (value == null)
      {
        writer.writeTag(ExtParserModule.NAMESPACE, FunctionsWriter.PROPERTY_REF_TAG, "name", name,
            XmlWriterSupport.CLOSE);
View Full Code Here

  }

  private void init()
  {
    this.dataSchemaDefinition = new DefaultDataSchemaDefinition();
    this.properties = new ReportProperties();
    this.styleSheetCollection = new StyleSheetCollection();
    this.rootGroup = new RelationalGroup();
    this.reportHeader = new ReportHeader();
    this.reportFooter = new ReportFooter();
    this.pageHeader = new PageHeader();
View Full Code Here

                                                               final ReportParameterValues parameterValues)
      throws ReportProcessingException
  {
    final ReportParameterValues retval = new ReportParameterValues();
    // for the sake of backward compatiblity ..
    final ReportProperties reportProperties = report.getProperties();
    final String[] propertyKeys = reportProperties.keyArray();
    for (int i = 0; i < propertyKeys.length; i++)
    {
      final String string = propertyKeys[i];
      retval.put(string, reportProperties.get(string));
    }

    retval.putAll(parameterValues);
    retval.put(MasterReport.REPORT_DATE_PROPERTY, new Date());
    return retval;
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.util.ReportProperties

Copyright © 2018 www.massapicom. 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.