boolean skipUnlockedNavtitle ( final Element metadataContainer , final Element checkForNavtitle ) { if ( ! TOPIC_TITLEALTS . matches ( metadataContainer ) || ! TOPIC_NAVTITLE . matches ( checkForNavtitle ) ) { return false ; } else if ( checkForNavtitle . getAttributeNodeNS ( DITA_OT_NS , ATTRIBUTE_NAME_LOCKTITLE ) == null ) { return false ; } else if ( ATTRIBUTE_NAME_LOCKTITLE_VALUE_YES . matches ( checkForNavtitle . getAttributeNodeNS ( DITA_OT_NS , ATTRIBUTE_NAME_LOCKTITLE ) . getValue ( ) ) ) { return false ; } return true ; }
Check if an element is an unlocked navtitle which should not be pushed into topics .