public void setContentCacheKey( final String contentCacheKey ) { setAttribute( AttributeNames.Pentaho.NAMESPACE, AttributeNames.Pentaho.CONTENT_CACHE_KEY, contentCacheKey ); }
public void setCompatibilityLevel( final Integer level ) { setAttribute( AttributeNames.Internal.NAMESPACE, AttributeNames.Internal.COMAPTIBILITY_LEVEL, level ); }
public void setStyleDefinition( final ElementStyleDefinition styleDefinition ) { setAttribute( AttributeNames.Core.NAMESPACE, AttributeNames.Core.STYLE_SHEET, styleDefinition ); }
public void setStyleSheetReference( final ResourceKey styleSheetReference ) { setAttribute( AttributeNames.Core.NAMESPACE, AttributeNames.Core.STYLE_SHEET_REFERENCE, styleSheetReference ); }
public void setBundle( final DocumentBundle bundle ) { setAttribute( AttributeNames.Core.NAMESPACE, AttributeNames.Core.BUNDLE, bundle ); }
protected MasterReport tuneForCurrentMode( final MasterReport report ) { report.setAttribute( AttributeNames.Internal.NAMESPACE, AttributeNames.Internal.COMAPTIBILITY_LEVEL, null ); return report; }
/** * Defines the logical page definition for this report. If no format is defined the system's default page format is * used. * <p/> * If there is no printer available and the JDK blocks during the printer discovery, you can set the * {@link Configuration} key "org.pentaho.reporting.engine.classic.core.NoPrinterAvailable" to "false" and JFreeReport * will use a hardcoded default page format instead. * * @param format * the default format (<code>null</code> permitted). */ public void setPageDefinition( PageDefinition format ) { if ( format == null ) { format = createDefaultPageDefinition(); } setAttribute( AttributeNames.Core.NAMESPACE, AttributeNames.Core.PAGE_DEFINITION, format ); notifyNodePropertiesChanged(); }
protected MasterReport tuneForMigrationMode( final MasterReport report ) { final CompatibilityUpdater updater = new CompatibilityUpdater(); updater.performUpdate( report ); report.setAttribute( AttributeNames.Internal.NAMESPACE, AttributeNames.Internal.COMAPTIBILITY_LEVEL, null ); return report; }
/** * Done parsing. * * @throws org.xml.sax.SAXException * if there is a parsing error. */ protected void doneParsing() throws SAXException { if ( dataFactoryReadHandler != null ) { final DataFactory dataFactory = dataFactoryReadHandler.getDataFactory(); if ( dataFactory != null ) { report.setDataFactory( dataFactory ); } } try { final GroupList clone = (GroupList) groupList.clone(); clone.installIntoReport( report ); } catch ( CloneNotSupportedException e ) { throw new ParseException( "Failed to add group-list to report", getLocator() ); } report.setAttribute( AttributeNames.Internal.NAMESPACE, AttributeNames.Internal.FILEFORMAT, "simple-xml" ); }
report.setAttribute( AttributeNames.Core.NAMESPACE, AttributeNames.Core.SOURCE, rootHandler.getSource() ); } else { report = (MasterReport) maybeReport; rootHandler.setHelperObject( ReportDefinitionReadHandler.TEMPLATE_FACTORY_KEY, templateFactory ); report.setAttribute( AttributeNames.Internal.NAMESPACE, AttributeNames.Internal.FILEFORMAT, "extended-xml" ); report.setCompatibilityLevel( ClassicEngineBoot.computeVersionId( 3, 8, 0 ) ); this.report = report;
report.setAttribute( AttributeNames.Internal.NAMESPACE, AttributeNames.Internal.FILEFORMAT, "unified-fileformat" );
report.setAttribute( AttributeNames.Core.NAMESPACE, AttributeNames.Core.SOURCE, rootHandler.getSource() ); } else { report = (MasterReport) maybeReport;