private void processParseResult ( final URI currentFile ) { // Category non-copyto result and update uplevels accordingly for ( final Reference file : listFilter . getNonCopytoResult ( ) ) { categorizeReferenceFile ( file ) ; updateUplevels ( file . filename ) ; } for ( final Map . Entry < URI , URI > e : listFilter . getCopytoMap ( ) . entrySet ( ) ) { final URI source = e . getValue ( ) ; final URI target = e . getKey ( ) ; copyTo . put ( target , source ) ; updateUplevels ( target ) ; } schemeSet . addAll ( listFilter . getSchemeRefSet ( ) ) ; // collect key definitions for ( final Map . Entry < String , KeyDef > e : keydefFilter . getKeysDMap ( ) . entrySet ( ) ) { // key and value.keys will differ when keydef is a redirect to another keydef final String key = e . getKey ( ) ; final KeyDef value = e . getValue ( ) ; if ( schemeSet . contains ( currentFile ) ) { schemekeydefMap . put ( key , new KeyDef ( key , value . href , value . scope , value . format , currentFile , null ) ) ; } } hrefTargetSet . addAll ( listFilter . getHrefTargets ( ) ) ; conrefTargetSet . addAll ( listFilter . getConrefTargets ( ) ) ; nonConrefCopytoTargetSet . addAll ( listFilter . getNonConrefCopytoTargets ( ) ) ; coderefTargetSet . addAll ( listFilter . getCoderefTargets ( ) ) ; outDitaFilesSet . addAll ( listFilter . getOutFilesSet ( ) ) ; // Generate topic-scheme dictionary final Set < URI > schemeSet = listFilter . getSchemeSet ( ) ; if ( schemeSet != null && ! schemeSet . isEmpty ( ) ) { Set < URI > children = schemeDictionary . get ( currentFile ) ; if ( children == null ) { children = new HashSet <> ( ) ; } children . addAll ( schemeSet ) ; schemeDictionary . put ( currentFile , children ) ; final Set < URI > hrfSet = listFilter . getHrefTargets ( ) ; for ( final URI filename : hrfSet ) { children = schemeDictionary . get ( filename ) ; if ( children == null ) { children = new HashSet <> ( ) ; } children . addAll ( schemeSet ) ; schemeDictionary . put ( filename , children ) ; } } }
Process results from parsing a single topic or map