Package org.iirds.dita.ot.plugin
Class TitleExtractor
java.lang.Object
org.iirds.dita.ot.plugin.TitleExtractor
Extract the title of a topic or map.
- Author:
- Martin Kreutzer, Empolis Information Management GmbH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMapTitle(Element map) Get the title of a mapgetNavTitle(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 attributegetTopicTitle(Element topic) Get the title of a topic
-
Constructor Details
-
TitleExtractor
public TitleExtractor()
-
-
Method Details
-
getMapTitle
Get the title of a map- Parameters:
map- the map root element to analyze- Returns:
- the title of the map
-
getTopicTitle
Get the title of a topic- Parameters:
topic- the topic root element to analyze- Returns:
- the title of the topic
-