Class TemplateParseHelper


  • public class TemplateParseHelper
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private TemplateParseHelper()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String compile​(java.lang.String htmlTemplate, java.lang.Object data, java.lang.String itemPrefix)  
      static void compileTree​(org.jsoup.nodes.Element resultElement, org.jsoup.nodes.Element templateElement, java.util.Collection<java.lang.Object> docs, java.lang.String itemPrefix, java.lang.String nestedKey)  
      static <T> void compileTreeFromBean​(org.jsoup.nodes.Element resultElement, org.jsoup.nodes.Element templateElement, java.util.Collection<T> docs, java.lang.String itemPrefix, java.lang.String nestedKey)  
      static java.lang.String getTemplateFromResources​(java.lang.String path)  
      static boolean isMsmElementExists​(java.lang.String html)  
      static boolean isMsmElementParentExists​(org.jsoup.nodes.Element element)  
      static boolean isSvgElementParentExists​(org.jsoup.nodes.Element element)  
      • Methods inherited from class java.lang.Object

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

      • logger

        private static final org.slf4j.Logger logger
      • THIS_PLACEHOLDER

        public static final java.lang.String THIS_PLACEHOLDER
        See Also:
        Constant Field Values
      • IGNORE_LINKS_REGEX

        public static final java.lang.String IGNORE_LINKS_REGEX
        See Also:
        Constant Field Values
    • Constructor Detail

      • TemplateParseHelper

        private TemplateParseHelper()
    • Method Detail

      • compile

        public static java.lang.String compile​(java.lang.String htmlTemplate,
                                               java.lang.Object data,
                                               java.lang.String itemPrefix)
      • compileTree

        public static void compileTree​(org.jsoup.nodes.Element resultElement,
                                       org.jsoup.nodes.Element templateElement,
                                       java.util.Collection<java.lang.Object> docs,
                                       java.lang.String itemPrefix,
                                       java.lang.String nestedKey)
      • compileTreeFromBean

        public static <T> void compileTreeFromBean​(org.jsoup.nodes.Element resultElement,
                                                   org.jsoup.nodes.Element templateElement,
                                                   java.util.Collection<T> docs,
                                                   java.lang.String itemPrefix,
                                                   java.lang.String nestedKey)
      • getTemplateFromResources

        public static java.lang.String getTemplateFromResources​(java.lang.String path)
      • isMsmElementExists

        public static boolean isMsmElementExists​(java.lang.String html)
      • isMsmElementParentExists

        public static boolean isMsmElementParentExists​(org.jsoup.nodes.Element element)
      • isSvgElementParentExists

        public static boolean isSvgElementParentExists​(org.jsoup.nodes.Element element)