Interface Document

All Superinterfaces:
ContentNode, StructuralNode
All Known Implementing Classes:
DocumentImpl

public interface Document extends StructuralNode
  • Method Details

    • getStructuredDoctitle

      Title getStructuredDoctitle()
      Returns:
      The Title structure for this document.
      See Also:
    • getDoctitle

      String getDoctitle()
      Returns:
      The title as a String.
      See Also:
    • doctitle

      @Deprecated String doctitle()
      Deprecated.
      Please use getDoctitle()
      Returns:
      The title as a String.
      See Also:
    • getAuthors

      List<Author> getAuthors()
      Gets the author(s) information as defined in the author line in the document header, or in author & email attributes.
      Returns:
      authors information
    • isBasebackend

      boolean isBasebackend(String backend)
      Returns:
      basebackend attribute value
    • basebackend

      @Deprecated boolean basebackend(String backend)
      Deprecated.
      Returns:
      basebackend attribute value
    • getOptions

      Map<Object,Object> getOptions()
      Returns:
      options defined in document.
    • getAndIncrementCounter

      int getAndIncrementCounter(String name)
      Gets the current counter with the given name and increases its value. At the first invocation the counter will return 1. After the call the value of the counter is set to the returned value plus 1.
      Parameters:
      name -
      Returns:
    • getAndIncrementCounter

      int getAndIncrementCounter(String name, int initialValue)
      Gets the current counter with the given name and increases its value. At the first invocation the counter will return the given initial value. After the call the value of the counter is set to the returned value plus 1.
      Parameters:
      name -
      initialValue -
      Returns:
    • isSourcemap

      boolean isSourcemap()
      Returns:
      Whether the sourcemap is enabled.
    • setSourcemap

      void setSourcemap(boolean state)
      Toggles the sourcemap option. This method must be called before the document is parsed, such as from a Preprocessor extension. Otherwise, it has no effect.
      Parameters:
      state - The state in which to put the sourcemap (true = on, false = off).
    • getCatalog

      Catalog getCatalog()
      The catalog contains data collected by asciidoctor that is useful to a converter. Note that the catalog is not part of the asciidoctor public API and is subject to change.
      Returns:
      catalog
    • getRevisionInfo

      RevisionInfo getRevisionInfo()
      The revision information with: date, number and remark.
      Returns:
      revisionInfo