@Test( expected = ParseException.class ) public void testDoneParsingException() throws Exception { handler.init( rootXmlReadHandler, URI, TAG_NAME ); handler.doneParsing(); }
protected void doneParsing() throws SAXException { final ScriptableDataFactory srdf = new ScriptableDataFactory(); if ( configReadHandler == null ) { throw new ParseException( "Required element 'config' is missing.", getLocator() ); } srdf.setLanguage( configReadHandler.getLanguage() ); if ( !StringUtils.isEmpty( configReadHandler.getScript() ) ) { srdf.setScript( configReadHandler.getScript() ); } if ( !StringUtils.isEmpty( configReadHandler.getShutdownScript() ) ) { srdf.setShutdownScript( configReadHandler.getShutdownScript() ); } for ( int i = 0; i < queries.size(); i++ ) { final PropertyReadHandler handler = queries.get( i ); srdf.setQuery( handler.getName(), handler.getResult() ); } dataFactory = srdf; }
ScriptableDataSourceReadHandler extends AbstractXmlReadHandler implements DataFactoryReadHandler { protected void doneParsing() throws SAXException { final ScriptableDataFactory srdf = new ScriptableDataFactory(); if ( configReadHandler == null ) { throw new ParseException( "Required element 'config' is missing.", getLocator() ); } srdf.setLanguage( configReadHandler.getLanguage() ); if ( !StringUtils.isEmpty( configReadHandler.getScript() ) ) { srdf.setScript( configReadHandler.getScript() ); } if ( !StringUtils.isEmpty( configReadHandler.getShutdownScript() ) ) { srdf.setShutdownScript( configReadHandler.getShutdownScript() ); } for ( int i = 0; i < queries.size(); i++ ) { final PropertyReadHandler handler = queries.get( i ); srdf.setQuery( handler.getName(), handler.getResult() ); } dataFactory = srdf; } }
ScriptableDataSourceReadHandler extends AbstractXmlReadHandler implements DataFactoryReadHandler { protected void doneParsing() throws SAXException { final ScriptableDataFactory srdf = new ScriptableDataFactory(); if ( configReadHandler == null ) { throw new ParseException( "Required element 'config' is missing.", getLocator() ); } srdf.setLanguage( configReadHandler.getLanguage() ); if ( !StringUtils.isEmpty( configReadHandler.getScript() ) ) { srdf.setScript( configReadHandler.getScript() ); } if ( !StringUtils.isEmpty( configReadHandler.getShutdownScript() ) ) { srdf.setShutdownScript( configReadHandler.getShutdownScript() ); } for ( int i = 0; i < queries.size(); i++ ) { final PropertyReadHandler handler = queries.get( i ); srdf.setQuery( handler.getName(), handler.getResult() ); } dataFactory = srdf; } ScriptableDataSourceReadHandler(); }
ScriptableDataSourceReadHandler extends AbstractXmlReadHandler implements DataFactoryReadHandler { protected void doneParsing() throws SAXException { final ScriptableDataFactory srdf = new ScriptableDataFactory(); if ( configReadHandler == null ) { throw new ParseException( "Required element 'config' is missing.", getLocator() ); } srdf.setLanguage( configReadHandler.getLanguage() ); if ( !StringUtils.isEmpty( configReadHandler.getScript() ) ) { srdf.setScript( configReadHandler.getScript() ); } if ( !StringUtils.isEmpty( configReadHandler.getShutdownScript() ) ) { srdf.setShutdownScript( configReadHandler.getShutdownScript() ); } for ( int i = 0; i < queries.size(); i++ ) { final PropertyReadHandler handler = queries.get( i ); srdf.setQuery( handler.getName(), handler.getResult() ); } dataFactory = srdf; } ScriptableDataSourceReadHandler(); Object getObject(); DataFactory getDataFactory(); }
ScriptableDataSourceReadHandler extends AbstractXmlReadHandler implements DataFactoryReadHandler { protected void doneParsing() throws SAXException { final ScriptableDataFactory srdf = new ScriptableDataFactory(); if ( configReadHandler == null ) { throw new ParseException( "Required element 'config' is missing.", getLocator() ); } srdf.setLanguage( configReadHandler.getLanguage() ); if ( !StringUtils.isEmpty( configReadHandler.getScript() ) ) { srdf.setScript( configReadHandler.getScript() ); } if ( !StringUtils.isEmpty( configReadHandler.getShutdownScript() ) ) { srdf.setShutdownScript( configReadHandler.getShutdownScript() ); } for ( int i = 0; i < queries.size(); i++ ) { final PropertyReadHandler handler = queries.get( i ); srdf.setQuery( handler.getName(), handler.getResult() ); } dataFactory = srdf; } ScriptableDataSourceReadHandler(); Object getObject(); DataFactory getDataFactory();  }