Class TitleExtractor

java.lang.Object
org.iirds.dita.ot.plugin.TitleExtractor

public class TitleExtractor extends Object
Extract the title of a topic or map.
Author:
Martin Kreutzer, Empolis Information Management GmbH
  • Constructor Details

    • TitleExtractor

      public TitleExtractor()
  • Method Details

    • getMapTitle

      public String getMapTitle(Element map)
      Get the title of a map
      Parameters:
      map - the map root element to analyze
      Returns:
      the title of the map
    • getTopicTitle

      public String getTopicTitle(Element topic)
      Get the title of a topic
      Parameters:
      topic - the topic root element to analyze
      Returns:
      the title of the topic
    • getNavTitle

      public String getNavTitle(Element topicref)
      Gets the title belonging to a topicref (or specialized topicref) element.Implementation looks first for topicmeta/navtitle, then for linktext element, then for navtitle attribute
      Parameters:
      topicref - the topicref element
      Returns:
      the tile or null