protected XmlReadHandler getHandlerForChild( final String uri, final String tagName, final Attributes atts ) throws SAXException { if ( isSameNamespace( uri ) == false ) { return null; } if ( "alias".equals( tagName ) ) { final StringReadHandler rh = new StringReadHandler(); aliasReadHandlers.add( rh ); return rh; } return null; }
/** * Returns the handler for a child element. * * @param tagName * the tag name. * @param atts * the attributes. * @return the handler or null, if the tagname is invalid. * @throws org.xml.sax.SAXException * if there is a parsing error. */ protected XmlReadHandler getHandlerForChild( final String uri, final String tagName, final Attributes atts ) throws SAXException { if ( getUri().equals( uri ) == false ) { return null; } if ( "field".equals( tagName ) ) { final StringReadHandler readHandler = new StringReadHandler(); fieldHandlers.add( readHandler ); return readHandler; } return null; }
protected XmlReadHandler getHandlerForChild( final String uri, final String tagName, final Attributes atts ) throws SAXException { if ( isSameNamespace( uri ) == false ) { return null; } if ( "static-query".equals( tagName ) ) { query = new StringReadHandler(); return query; } if ( "script".equals( tagName ) ) { script = new PropertyReadHandler( "language", false ); return script; } return null; }
/** * Returns the handler for a child element. * * @param tagName * the tag name. * @param atts * the attributes. * @return the handler or null, if the tagname is invalid. * @throws SAXException * if there is a parsing error. */ protected XmlReadHandler getHandlerForChild( final String uri, final String tagName, final Attributes atts ) throws SAXException { if ( isSameNamespace( uri ) == false ) { return null; } if ( "driver".equals( tagName ) ) { driverReadHandler = new StringReadHandler(); return driverReadHandler; } if ( "url".equals( tagName ) ) { urlReadHandler = new StringReadHandler(); return urlReadHandler; } if ( "properties".equals( tagName ) ) { propertiesReadHandler = new PasswordPropertiesReadHandler(); return propertiesReadHandler; } return null; }
/** * Returns the handler for a child element. * * @param tagName * the tag name. * @param atts * the attributes. * @return the handler or null, if the tagname is invalid. * @throws SAXException * if there is a parsing error. */ protected XmlReadHandler getHandlerForChild( final String uri, final String tagName, final Attributes atts ) throws SAXException { if ( isSameNamespace( uri ) == false ) { return null; } if ( "path".equals( tagName ) ) { pathReadHandler = new StringReadHandler(); return pathReadHandler; } if ( "username".equals( tagName ) ) { usernameReadHandler = new StringReadHandler(); return usernameReadHandler; } if ( "password".equals( tagName ) ) { passwordReadHandler = new PasswordReadHandler(); return passwordReadHandler; } return null; }
/** * Returns the handler for a child element. * * @param uri * the namespace. * @param tagName * the tag name. * @param attrs * the attributes. * @return the handler or null, if the tagname is invalid. * @throws SAXException * if there is a parsing error. */ protected XmlReadHandler getHandlerForChild( final String uri, final String tagName, final Attributes attrs ) throws SAXException { if ( isSameNamespace( uri ) == false ) { return null; } if ( "property".equals( tagName ) ) { final String name = attrs.getValue( getUri(), "name" ); if ( name == null ) { throw new SAXException( "Required attribute 'name' is missing." ); } final StringReadHandler readHandler = new StringReadHandler(); fieldHandlers.put( name, readHandler ); return readHandler; } return null; }
fieldReadHandler = new StringReadHandler();
if ( "field".equals( tagName ) ) { if ( fieldReadHandler == null ) { fieldReadHandler = new StringReadHandler();
fieldReadHandler = new StringReadHandler();