/** * Returns the object for this element or null, if this element does not create an object. * * @return the object. */ public Object getObject() { objectDescription.configure( getRootHandler().getParserConfiguration() ); return objectDescription.createObject(); } }
(ClassFactory) ObjectUtilities.loadAndInstantiate( className, getClass(), ClassFactory.class ); if ( factory != null ) { factory.configure( getRootHandler().getParserConfiguration() ); fc.addFactory( factory );
final RootXmlReadHandler handler = createRootHandler( manager, targetKey, rootHandlers, contextKey, -1 ); final DefaultConfiguration parserConfiguration = handler.getParserConfiguration(); final URL value = manager.toURL( contextKey ); if ( value != null ) {
final DefaultConfiguration parserConfiguration = handler.getParserConfiguration(); final URL value = manager.toURL( contextKey ); if ( value != null ) {
/** * Starts parsing. * * @param attrs * the attributes. * @throws org.xml.sax.SAXException * if there is a parsing error. */ protected void startParsing( final PropertyAttributes attrs ) throws SAXException { final String className = CompatibilityMapperUtil.mapClassName( attrs.getValue( getUri(), "class" ) ); if ( className == null ) { throw new ParseException( "Attribute 'class' is missing.", getRootHandler().getDocumentLocator() ); } final TemplateCollector fc = (TemplateCollector) getRootHandler().getHelperObject( ReportDefinitionReadHandler.TEMPLATE_FACTORY_KEY ); final TemplateCollection factory = (TemplateCollection) ObjectUtilities.loadAndInstantiate( className, getClass(), TemplateCollection.class ); if ( factory != null ) { factory.configure( getRootHandler().getParserConfiguration() ); fc.addTemplateCollection( factory ); } }
/** * Starts parsing. * * @param attrs * the attributes. * @throws org.xml.sax.SAXException * if there is a parsing error. */ protected void startParsing( final PropertyAttributes attrs ) throws SAXException { final String className = CompatibilityMapperUtil.mapClassName( attrs.getValue( getUri(), "class" ) ); if ( className == null ) { throw new ParseException( "Attribute 'class' is missing.", getRootHandler().getDocumentLocator() ); } final DataSourceCollector fc = (DataSourceCollector) getRootHandler().getHelperObject( ReportDefinitionReadHandler.DATASOURCE_FACTORY_KEY ); final DataSourceFactory factory = (DataSourceFactory) ObjectUtilities.loadAndInstantiate( className, getClass(), DataSourceFactory.class ); if ( factory != null ) { factory.configure( getRootHandler().getParserConfiguration() ); fc.addFactory( factory ); } }
final TemplateCollector templateFactory = new TemplateCollector(); classFactory.configure( rootHandler.getParserConfiguration() ); dataSourceFactory.configure( rootHandler.getParserConfiguration() ); templateFactory.configure( rootHandler.getParserConfiguration() );
classFactory.configure( rootHandler.getParserConfiguration() ); rootHandler.setHelperObject( ExtSubReportReadHandler.CLASS_FACTORY_KEY, classFactory ); dataSourceFactory.configure( rootHandler.getParserConfiguration() ); rootHandler.setHelperObject( ExtSubReportReadHandler.DATASOURCE_FACTORY_KEY, dataSourceFactory ); templateFactory.configure( rootHandler.getParserConfiguration() ); rootHandler.setHelperObject( ExtSubReportReadHandler.TEMPLATE_FACTORY_KEY, templateFactory );
templateFactory.addTemplateCollection( new DefaultTemplateCollection() ); classFactory.configure( rootHandler.getParserConfiguration() ); dataSourceFactory.configure( rootHandler.getParserConfiguration() ); templateFactory.configure( rootHandler.getParserConfiguration() );
templateFactory.addTemplateCollection( new DefaultTemplateCollection() ); classFactory.configure( rootHandler.getParserConfiguration() ); dataSourceFactory.configure( rootHandler.getParserConfiguration() ); templateFactory.configure( rootHandler.getParserConfiguration() );