private void generateStumpTopic ( final Element topicref ) { final URI result = getResultFile ( topicref ) ; final URI temp = tempFileNameScheme . generateTempFileName ( result ) ; final URI absTemp = job . tempDir . toURI ( ) . resolve ( temp ) ; final String name = getBaseName ( new File ( result ) . getName ( ) ) ; String navtitle = getChildElementValueOfTopicmeta ( topicref , TOPIC_NAVTITLE ) ; if ( navtitle == null ) { navtitle = getValue ( topicref , ATTRIBUTE_NAME_NAVTITLE ) ; } final String shortDesc = getChildElementValueOfTopicmeta ( topicref , MAP_SHORTDESC ) ; writeChunk ( absTemp , name , navtitle , shortDesc ) ; // update current element's @href value final URI relativePath = getRelativePath ( currentFile . resolve ( FILE_NAME_STUB_DITAMAP ) , absTemp ) ; topicref . setAttribute ( ATTRIBUTE_NAME_HREF , relativePath . toString ( ) ) ; if ( MAPGROUP_D_TOPICGROUP . matches ( topicref ) ) { topicref . setAttribute ( ATTRIBUTE_NAME_CLASS , MAP_TOPICREF . toString ( ) ) ; } final URI relativeToBase = getRelativePath ( job . tempDirURI . resolve ( "dummy" ) , absTemp ) ; final FileInfo fi = new FileInfo . Builder ( ) . uri ( temp ) . result ( result ) . format ( ATTR_FORMAT_VALUE_DITA ) . build ( ) ; job . add ( fi ) ; }
Generate stump topic for to - content content .