Package org.iirds.dita.ot.plugin

# 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 Summary

  Constructors
  Constructor
  Description
  `TitleExtractor()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `getMapTitle(Element map)`
  Get the title of a map
  `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
  `String`
  `getTopicTitle(Element topic)`
  Get the title of a topic

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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