@Test public void testGetHandlerForChild() throws SAXException { XmlReadHandler result = handler.getHandlerForChild( "incorrect", TAG_NAME, null ); assertThat( result, is( nullValue() ) ); result = handler.getHandlerForChild( URI, TAG_NAME, null ); assertThat( result, is( nullValue() ) ); result = handler.getHandlerForChild( URI, "property", null ); assertThat( result, is( instanceOf( SessionPropertyReadHandler.class ) ) ); }
protected XmlReadHandler getHandlerForChild( final String uri, final String tagName, final Attributes atts ) throws SAXException { if ( isSameNamespace( uri ) == false ) { return null; } if ( "property".equals( tagName ) ) { final SessionPropertyReadHandler readHandler = new SessionPropertyReadHandler(); sessionPropertyHandlers.add( readHandler ); return readHandler; } return null; }
SessionPropertiesReadHandler extends AbstractXmlReadHandler { protected XmlReadHandler getHandlerForChild( final String uri, final String tagName, final Attributes atts ) throws SAXException { if ( isSameNamespace( uri ) == false ) { return null; } if ( "property".equals( tagName ) ) { final SessionPropertyReadHandler readHandler = new SessionPropertyReadHandler(); sessionPropertyHandlers.add( readHandler ); return readHandler; } return null; } }
SessionPropertiesReadHandler extends AbstractXmlReadHandler { protected XmlReadHandler getHandlerForChild( final String uri, final String tagName, final Attributes atts ) throws SAXException { if ( isSameNamespace( uri ) == false ) { return null; } if ( "property".equals( tagName ) ) { final SessionPropertyReadHandler readHandler = new SessionPropertyReadHandler(); sessionPropertyHandlers.add( readHandler ); return readHandler; } return null; } SessionPropertiesReadHandler(); }
SessionPropertiesReadHandler extends AbstractXmlReadHandler { protected XmlReadHandler getHandlerForChild( final String uri, final String tagName, final Attributes atts ) throws SAXException { if ( isSameNamespace( uri ) == false ) { return null; } if ( "property".equals( tagName ) ) { final SessionPropertyReadHandler readHandler = new SessionPropertyReadHandler(); sessionPropertyHandlers.add( readHandler ); return readHandler; } return null; } SessionPropertiesReadHandler(); Object getObject(); }
SessionPropertiesReadHandler extends AbstractXmlReadHandler { protected XmlReadHandler getHandlerForChild( final String uri, final String tagName, final Attributes atts ) throws SAXException { if ( isSameNamespace( uri ) == false ) { return null; } if ( "property".equals( tagName ) ) { final SessionPropertyReadHandler readHandler = new SessionPropertyReadHandler(); sessionPropertyHandlers.add( readHandler ); return readHandler; } return null; } SessionPropertiesReadHandler(); Object getObject();  }