Class FormatProcessor

java.lang.Object
io.john.amiscaray.stir.util.FormatProcessor

public class FormatProcessor
extends Object
Processes HTMLDocument formats, converting them to the corresponding markup
  • Field Details

  • Constructor Details

    • FormatProcessor

      private FormatProcessor()
  • Method Details

    • getInstance

      public static FormatProcessor getInstance()
    • processDocument

      public String processDocument​(HTMLDocument document)
      Processes a document's elements and template to produce its HTML markup output. See the README for more info
      Parameters:
      document - The document to process
      Returns:
      The document converted to HTML markup
    • processInnerTemplateBlock

      private String processInnerTemplateBlock​(String expression, HTMLDocument doc, Integer indentationSize)
      Parses the inner content of a template block, converting it to the appropriate HTML content
      Parameters:
      expression - The expression to parse
      doc - The HTML document being formatted
      indentationSize - The indentation size for the content
      Returns:
      The resulting content