Class MetadataUtils

java.lang.Object
org.iirds.dita.ot.plugin.contrib.MetadataUtils

public class MetadataUtils extends Object
Utilities for metadata extraction and conversion to iiRDS.
Author:
Martin Kreutzer, Empolis Information Management GmbH
  • Method Details

    • getElementByPath

      public static Optional<Element> getElementByPath(Element root, org.dita.dost.util.DitaClass... path)
    • getMetadataHolderElement

      public static Optional<Element> getMetadataHolderElement(Element root)
      Retrieve the elements that contain the meta information. For topics it is <prolog> for map it is <topicmeta>.
      Parameters:
      root - the root element of topic or map
      Returns:
      the element that is the parent of all metadata elements
    • getMetadataElements

      public static List<Element> getMetadataElements(Element root)