类 TemplateModelUtils

java.lang.Object
com.publiccms.common.tools.TemplateModelUtils

public class TemplateModelUtils extends Object
模板数据模型工具类 TemplateModelUtils
  • 构造器详细资料

    • TemplateModelUtils

      private TemplateModelUtils()
  • 方法详细资料

    • converBean

      public static Object converBean(freemarker.template.TemplateModel model) throws freemarker.template.TemplateModelException
      参数:
      model -
      返回:
      java bean value
      抛出:
      freemarker.template.TemplateModelException
    • converString

      public static String converString(freemarker.template.TemplateModel model) throws freemarker.template.TemplateModelException
      参数:
      model -
      返回:
      string value
      抛出:
      freemarker.template.TemplateModelException
    • converMap

      public static Map<String,String> converMap(freemarker.template.TemplateModel model) throws freemarker.template.TemplateModelException
      参数:
      model -
      返回:
      map value
      抛出:
      freemarker.template.TemplateModelException
    • converInteger

      public static Integer converInteger(freemarker.template.TemplateModel model) throws freemarker.template.TemplateModelException
      参数:
      model -
      返回:
      int value
      抛出:
      freemarker.template.TemplateModelException
    • converByte

      public static Byte converByte(freemarker.template.TemplateModel model) throws freemarker.template.TemplateModelException
      参数:
      model -
      返回:
      byte value
      抛出:
      freemarker.template.TemplateModelException
    • converShort

      public static Short converShort(freemarker.template.TemplateModel model) throws freemarker.template.TemplateModelException
      参数:
      model -
      返回:
      short value
      抛出:
      freemarker.template.TemplateModelException
    • converLong

      public static Long converLong(freemarker.template.TemplateModel model) throws freemarker.template.TemplateModelException
      参数:
      model -
      返回:
      long value
      抛出:
      freemarker.template.TemplateModelException
    • converDouble

      public static Double converDouble(freemarker.template.TemplateModel model) throws freemarker.template.TemplateModelException
      参数:
      model -
      返回:
      double value
      抛出:
      freemarker.template.TemplateModelException
    • converBigDecimal

      public static BigDecimal converBigDecimal(freemarker.template.TemplateModel model) throws freemarker.template.TemplateModelException
      参数:
      model -
      返回:
      bigDecimal value
      抛出:
      freemarker.template.TemplateModelException
    • converStringArray

      public static String[] converStringArray(freemarker.template.TemplateModel model) throws freemarker.template.TemplateModelException
      参数:
      model -
      返回:
      string array value
      抛出:
      freemarker.template.TemplateModelException
    • converBoolean

      public static Boolean converBoolean(freemarker.template.TemplateModel model) throws freemarker.template.TemplateModelException
      参数:
      model -
      返回:
      bool value
      抛出:
      freemarker.template.TemplateModelException
    • converDate

      public static Date converDate(freemarker.template.TemplateModel model) throws freemarker.template.TemplateModelException
      参数:
      model -
      返回:
      data value
      抛出:
      freemarker.template.TemplateModelException