Class HTMLEngine

All Implemented Interfaces:
IExtensionTemplateEngine, com.nomagic.magicreport.engine.IRuntimeInstanceVelocityEngine, ITemplateEngine

@OpenApiAll public class HTMLEngine extends DefaultTemplateEngine
This class provides an instance of the Velocity template engine.
Since:
Jun 11, 2007 10:49:57 PM
Version:
1.0 Jun 11, 2007
  • Constructor Details

    • HTMLEngine

      public HTMLEngine()
      Create instance of engine.
  • Method Details

    • handleForRow

      protected void handleForRow(Template template, StringBuilder inProcessBuffer) throws ParseErrorException
      Handle the #forrow directive.
      Overrides:
      handleForRow in class DefaultTemplateEngine
      Parameters:
      template - Template source.
      inProcessBuffer - in process buffer.
      Throws:
      ParseErrorException - when error while translation, or syntax not recognized.
    • createComment

      protected String createComment(String message)
      Return a formatted comment from given message. The default comment format return from this method is "<!-- {0} -->" where {0} is message;
      Overrides:
      createComment in class DefaultTemplateEngine
      Parameters:
      message - message to put in document comment
      Returns:
      comment