/** * Creates a working copy of the current parse state. * * @return the derived parse-parameters. * @noinspection ObjectAllocationInLoop as this is a cloning operation. */ protected Map deriveParseParameters() { final RootXmlReadHandler rootHandler = getRootHandler(); final HashMap map = new HashMap(); final String[] names = rootHandler.getHelperObjectNames(); final int length = names.length; for ( int i = 0; i < length; i++ ) { final String name = names[ i ]; final FactoryParameterKey key = new FactoryParameterKey( name ); map.put( key, rootHandler.getHelperObject( name ) ); } return map; } }
final IgnoreAnyChildReadHandler ignoreAnyChildReadHandler = new IgnoreAnyChildReadHandler(); ignoreAnyChildReadHandler.init( getRootHandler(), uri, tagName ); this.rootHandler.recurse( ignoreAnyChildReadHandler, uri, tagName, attrs ); } else { childHandler.init( getRootHandler(), uri, tagName ); this.rootHandler.recurse( childHandler, uri, tagName, attrs );