Class UMod2Html

java.lang.Object
eu.bandm.tools.umod.UMod2Html

public class UMod2Html extends Object
Pretty printer for UMod. For HTML-Generation see HtmlRenderer.
  • Field Details

    • path_to_stylesheet

      public static final String path_to_stylesheet
      See Also:
    • targetDir

      public static final String targetDir
      See Also:
    • URL_BANDM_USER_DOC

      public static final String URL_BANDM_USER_DOC
      See Also:
    • forest

      protected UMod.Forest forest
    • apidocpraefix

      protected String apidocpraefix
      Prefix to reach a class documentation file = html file. Points to the parent directory, or to the html file of the top-level class, iff monolithic mode.
    • linewidth

      protected int linewidth
    • allVisitorNums_classDefs

      protected SortedSet<Integer> allVisitorNums_classDefs
    • allConstructorNums_classDefs

      protected SortedSet<Integer> allConstructorNums_classDefs
    • allVisitorNums_visitorDefs

      protected SortedSet<Integer> allVisitorNums_visitorDefs
    • blanks

      protected static final String blanks
    • preItems

      protected List<Element_pre.Content> preItems
  • Constructor Details

    • UMod2Html

      public UMod2Html()
  • Method Details

    • preItems_add

      protected void preItems_add(String s)
    • preItems_add

      protected void preItems_add(Element_a a)
    • preItems_add

      protected void preItems_add(Element_span a)
    • aRef

      protected Element_a aRef(String XXname, String contents)
    • spanClass

      protected Element_span spanClass(String text, String cls)
    • spanStyle

      protected Element_span spanStyle(String text, String st)
    • aDef

      protected Element_a aDef(String name, String contents)
    • aDef

      protected Element_a aDef(String XXname, String contents, @Opt @Opt String docu)
      Generate an outgoing/clickable link.
      Parameters:
      XXname - the name of the definition, will appear prefixed in the href.
      contents - what is visible in the a-element.
      docu - tooltip when hovering over the link element.
    • prettyPrint

      public Element_pre prettyPrint(UMod.Forest forest, String dateAndTime, boolean monolithic)
      Generates HTML output like
       MODEL xxxx
         EXT xxx from yy.yy.yy
         EXT xxx from yy.yy.yy
      
       TOPLEVEL CLASS
       CCCC
               fff
               fff
       | CCC
       | CCC
       END MODEL
       
    • writeToFile

      public void writeToFile(UMod.Forest forest, String dateAndTime, int linewidth, boolean monolithic, File outputDir, String fname)