Package org.iirds.dita.ot.plugin.contrib

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

  Modifier and Type
  Method
  Description
  `static Optional<Element>`
  `getElementByPath(Element root, org.dita.dost.util.DitaClass... path)`
  `static List<Element>`
  `getMetadataElements(Element root)`
  `static Optional<Element>`
  `getMetadataHolderElement(Element root)`
  Retrieve the elements that contain the meta information.

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

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

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