Package org.iirds.dita.ot.plugin.module

# Class SubjectExtractor

java.lang.Object
org.iirds.dita.ot.plugin.module.SubjectExtractor

public class SubjectExtractor extends Object
Extracts subject definitions from a map.

Author:
  Martin Kreutzer, Empolis Information Management GmbH

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `(package private) static org.slf4j.Logger`
  `logger`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `SubjectExtractor()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `protected void`
  `handleTopicref(Element topicref, Optional<SubjectDef> parentSubject, Optional<RelationType> parentRelation)`
  `protected static boolean`
  `isRelationElement(Element elem)`
  `protected static boolean`
  `isSubjectSchemeRelated(Element elem)`
  `void`
  `processMap(Document doc)`
  Extracts subject definitions from a map
  `protected static Optional<SubjectDef>`
  `subjectdefFromElement(Element element)`

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

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

- ## Field Details

  - ### logger

    static org.slf4j.Logger logger

- ## Constructor Details

  - ### SubjectExtractor

    public SubjectExtractor()

- ## Method Details

  - ### isRelationElement

    protected static boolean isRelationElement(Element elem)

  - ### isSubjectSchemeRelated

    protected static boolean isSubjectSchemeRelated(Element elem)

  - ### processMap

    public void processMap(Document doc)
    Extracts subject definitions from a map
    Parameters:
      `doc` - the DOM of the map

  - ### handleTopicref

    protected void handleTopicref(Element topicref, Optional<SubjectDef> parentSubject, Optional<RelationType> parentRelation)

  - ### subjectdefFromElement

    protected static Optional<SubjectDef> subjectdefFromElement(Element element)