public String getScript() { if ( script == null ) { return null; } return script.getResult(); }
/** * Done parsing. * * @throws SAXException if there is a parsing error. */ protected void doneParsing() throws SAXException { result = new Properties(); for ( int i = 0; i < propertyHandlers.size(); i++ ) { final PropertyReadHandler handler = propertyHandlers.get( i ); result.setProperty( handler.getName(), handler.getResult() ); } }
/** * Done parsing. * * @throws SAXException * if there is a parsing error. */ protected void doneParsing() throws SAXException { final NamedStaticDataFactory srdf = new NamedStaticDataFactory(); for ( int i = 0; i < queries.size(); i++ ) { final PropertyReadHandler handler = (PropertyReadHandler) queries.get( i ); srdf.setQuery( handler.getName(), handler.getResult() ); } dataFactory = srdf; }
public String getResult() { return PasswordEncryptionService.getInstance().decrypt( getRootHandler(), super.getResult() ); }
for ( int i = 0; i < queries.size(); i++ ) { final PropertyReadHandler handler = queries.get( i ); dataFactory.setQuery( handler.getName(), handler.getResult(), null, null ); dataFactory.setGlobalScript( globalScriptReadHandler.getResult() ); dataFactory.setGlobalScriptLanguage( globalScriptReadHandler.getName() );
/** * Done parsing. * * @throws SAXException * if there is a parsing error. */ protected void doneParsing() throws SAXException { final SequenceDescription sequenceDescription = data.getSequenceDescription(); for ( final PropertyReadHandler propertyReadHandler : properties ) { final String propertyName = propertyReadHandler.getName(); final String propertyValue = propertyReadHandler.getResult(); final int pos = getPropertyLocation( sequenceDescription, propertyName ); if ( pos == -1 ) { throw new ParseException( "Unable to set property " + propertyName + ". There is no such property.", getLocator() ); } final Class ptype = sequenceDescription.getParameterType( pos ); try { final Object o = ConverterRegistry.toPropertyValue( propertyValue, ptype ); data.setParameter( propertyName, o ); } catch ( BeanException e ) { throw new ParseException( "Unable to set property " + propertyName + ". Conversion error.", e, getLocator() ); } } }