Class TemplateHandler


  • public class TemplateHandler
    extends java.lang.Object
    Currently provides the match rule accumulation as well as the AST storage and rendering Rule stuff might be replaced with the dom4j RuleManager
    Author:
    Geir Magnusson Jr.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Map astmap  
      private java.util.List xpathList  
    • Constructor Summary

      Constructors 
      Constructor Description
      TemplateHandler()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void registerMatch​(java.lang.String xpath, org.apache.velocity.runtime.parser.node.SimpleNode node)  
      (package private) boolean render​(DVSLNode node, org.apache.velocity.context.Context context, java.io.Writer writer)  
      • Methods inherited from class java.lang.Object

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

      • astmap

        private java.util.Map astmap
      • xpathList

        private java.util.List xpathList
    • Constructor Detail

      • TemplateHandler

        public TemplateHandler()
    • Method Detail

      • registerMatch

        public void registerMatch​(java.lang.String xpath,
                                  org.apache.velocity.runtime.parser.node.SimpleNode node)
      • render

        boolean render​(DVSLNode node,
                       org.apache.velocity.context.Context context,
                       java.io.Writer writer)
                throws java.lang.Exception
        Throws:
        java.lang.Exception