Package org.iirds.dita.ot.plugin.model

# Class SubjectDefinitions

java.lang.Object
org.iirds.dita.ot.plugin.model.SubjectDefinitions

public class SubjectDefinitions extends Object
Collection of all subject definitions found from parsing

Author:
  Martin Kreutzer, Empolis Information Management GmbH

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `(package private) Map<String,SubjectDef>`
  `keysToSubjectsdefs`
  `(package private) List<SubjectDef>`
  `subjectdefs`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `SubjectDefinitions()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static SubjectDefinitions`
  `getDefault()`
  `Optional<SubjectDef>`
  `getSubjectDefByKey(String key)`
  Get subject definition by key
  `void`
  `register(SubjectDef subject)`
  Register a subject definition

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

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

- ## Field Details

  - ### subjectdefs

    List<SubjectDef> subjectdefs

  - ### keysToSubjectsdefs

    Map<String,SubjectDef> keysToSubjectsdefs

- ## Constructor Details

  - ### SubjectDefinitions

    public SubjectDefinitions()

- ## Method Details

  - ### getDefault

    public static SubjectDefinitions getDefault()

  - ### register

    public void register(SubjectDef subject)
    Register a subject definition
    Parameters:
      `subject` - the definition

  - ### getSubjectDefByKey

    public Optional<SubjectDef> getSubjectDefByKey(String key)
    Get subject definition by key
    Parameters:
      `key` - the key to lookup
    Returns:
      the found subject definition or null when not found