Class DefaultDocumentationImporter

  • All Implemented Interfaces:
    DocumentationImporter
    Direct Known Subclasses:
    RecursiveDefaultDocumentationImporter

    public class DefaultDocumentationImporter
    extends java.lang.Object
    implements DocumentationImporter
    This implementation scans a given directory and automatically imports all Markdown or AsciiDoc files in that directory. - Each file must represent a separate documentation section. - The second level heading ("## Section Title" in Markdown and "== Section Title" in AsciiDoc) will be used as the section title.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void importDocumentation​(com.structurizr.documentation.Documentable documentable, java.io.File path)
      Imports Markdown/AsciiDoc files from the specified path, each in its own section.
      protected void importFile​(com.structurizr.documentation.Documentable documentable, java.io.File file)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultDocumentationImporter

        public DefaultDocumentationImporter()
    • Method Detail

      • importDocumentation

        public void importDocumentation​(com.structurizr.documentation.Documentable documentable,
                                        java.io.File path)
        Imports Markdown/AsciiDoc files from the specified path, each in its own section.
        Specified by:
        importDocumentation in interface DocumentationImporter
        Parameters:
        documentable - the item that documentation should be associated with
        path - the path to import documentation from
      • importFile

        protected void importFile​(com.structurizr.documentation.Documentable documentable,
                                  java.io.File file)
                           throws java.lang.Exception
        Throws:
        java.lang.Exception