/** * Returns the object for this element. * * @return the object. */ public Object getObject() { return getResult(); } }
public String getQuery() { if ( query == null ) { return null; } return query.getResult(); } }
/** * Done parsing. * * @throws org.xml.sax.SAXException * if there is a parsing error. */ protected void doneParsing() throws SAXException { final int size = fieldHandlers.size(); fields = new String[size]; for ( int i = 0; i < size; i++ ) { final StringReadHandler readHandler = fieldHandlers.get( i ); fields[i] = readHandler.getResult(); } }
/** * Done parsing. * * @throws SAXException * if there is a parsing error. */ protected void doneParsing() throws SAXException { final Iterator it = fieldHandlers.entrySet().iterator(); while ( it.hasNext() ) { final Map.Entry entry = (Map.Entry) it.next(); final String key = (String) entry.getKey(); final StringReadHandler readHandler = (StringReadHandler) entry.getValue(); configuration.setConfigProperty( key, readHandler.getResult() ); } }
protected void doneParsing() throws SAXException { for ( int i = 0; i < aliasReadHandlers.size(); i++ ) { final StringReadHandler readHandler = aliasReadHandlers.get( i ); getBuilder().alias( readHandler.getResult() ); } }
/** * Done parsing. * * @throws SAXException * if there is a parsing error. */ protected void doneParsing() throws SAXException { final JndiConnectionProvider provider = new JndiConnectionProvider(); if ( pathReadHandler != null ) { provider.setConnectionPath( pathReadHandler.getResult() ); } if ( usernameReadHandler != null ) { provider.setUsername( usernameReadHandler.getResult() ); } if ( passwordReadHandler != null ) { provider.setPassword( passwordReadHandler.getResult() ); } this.connectionProvider = provider; }
/** * Done parsing. * * @throws SAXException * if there is a parsing error. */ protected void doneParsing() throws SAXException { final DriverConnectionProvider provider = new DriverConnectionProvider(); if ( driverReadHandler != null ) { provider.setDriver( driverReadHandler.getResult() ); } if ( urlReadHandler != null ) { provider.setUrl( urlReadHandler.getResult() ); } if ( propertiesReadHandler != null ) { final Properties p = (Properties) propertiesReadHandler.getObject(); final Iterator it = p.entrySet().iterator(); while ( it.hasNext() ) { final Map.Entry entry = (Map.Entry) it.next(); provider.setProperty( (String) entry.getKey(), (String) entry.getValue() ); } } driverConnectionProvider = provider; }
public String getResult() { return PasswordEncryptionService.getInstance().decrypt( getRootHandler(), super.getResult() ); }
/** * Done parsing. * * @throws SAXException * if there is a parsing error. */ protected void doneParsing() throws SAXException { super.doneParsing(); final CrosstabOtherGroup group = getElement(); if ( fieldReadHandler != null ) { group.setField( fieldReadHandler.getResult() ); } if ( headerReadHandler != null ) { group.setHeader( headerReadHandler.getElement() ); } if ( footerReadHandler != null ) { group.setFooter( footerReadHandler.getElement() ); } if ( rowGroupBodyReadHandler != null ) { group.setBody( rowGroupBodyReadHandler.getElement() ); } else if ( otherGroupBodyReadHandler != null ) { group.setBody( otherGroupBodyReadHandler.getElement() ); } }
group.setField( fieldReadHandler.getResult() );
group.setField( fieldReadHandler.getResult() );