public void writeReport( final WriteableDocumentBundle bundle, final MasterReport report, final DocumentBundle globalBundle ) throws IOException, BundleWriterException { if ( bundle == null ) { throw new NullPointerException(); } if ( report == null ) { throw new NullPointerException(); } if ( globalBundle == null ) { throw new NullPointerException(); } final WriteableDocumentMetaData data = bundle.getWriteableDocumentMetaData(); data.setBundleType( ClassicEngineBoot.BUNDLE_TYPE ); final MasterReport clone = (MasterReport) report.derive(); final BundleWriterState state = new BundleWriterState( clone, globalBundle, this ); for ( int i = 0; i < masterWriter.length; i++ ) { final BundleWriterHandler handler = masterWriter[i]; handler.writeReport( bundle, state ); } }
final WriteableDocumentMetaData targetBundleMetaData = targetBundle.getWriteableDocumentMetaData(); final DocumentMetaData bundleMetaData = sourceBundle.getMetaData(); targetBundleMetaData.setBundleType( bundleMetaData.getBundleType() ); for ( int j = 0; j < attributeNames.length; j++ ) { final String attributeName = attributeNames[ j ]; targetBundle.getWriteableDocumentMetaData().setEntryAttribute ( entryName, attributeName, sourceMetaData.getEntryAttribute( entryName, attributeName ) );
final WriteableDocumentMetaData targetBundleMetaData = targetBundle.getWriteableDocumentMetaData(); final DocumentMetaData bundleMetaData = sourceBundle.getMetaData(); targetBundleMetaData.setBundleType( bundleMetaData.getBundleType() ); for ( int j = 0; j < attributeNames.length; j++ ) { final String attributeName = attributeNames[ j ]; targetBundle.getWriteableDocumentMetaData().setEntryAttribute ( entryName, attributeName, sourceMetaData.getEntryAttribute( entryName, attributeName ) );
final WriteableDocumentMetaData targetBundleMetaData = targetBundle.getWriteableDocumentMetaData(); final DocumentMetaData bundleMetaData = sourceBundle.getMetaData(); targetBundleMetaData.setBundleType( bundleMetaData.getBundleType() ); for ( int j = 0; j < attributeNames.length; j++ ) { final String attributeName = attributeNames[ j ]; targetBundle.getWriteableDocumentMetaData().setEntryAttribute ( entryName, attributeName, sourceMetaData.getEntryAttribute( entryName, attributeName ) );
final WriteableDocumentMetaData writeableMetaData = bundle.getWriteableDocumentMetaData(); final String version = ClassicEngineInfo.getInstance().getName() + ' ' + ClassicEngineInfo.getInstance().getVersion();