org.jeecgframework.poi.util
类 PoiFunctionUtil

java.lang.Object
  继承者 org.jeecgframework.poi.util.PoiFunctionUtil

public final class PoiFunctionUtil
extends Object

if else,length,for each,fromatNumber,formatDate 满足模板的 el 表达式支持

作者:
JueYue

方法摘要
static String formatDate(Object obj, String format)
          格式化时间
static String formatNumber(Object obj, String format)
          格式化数字
static boolean isTrue(Object first, String operator, Object second)
          判断是不是成功
static int length(Object obj)
          获取对象的长度
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

方法详细信息

length

public static int length(Object obj)
获取对象的长度

参数:
obj -
返回:

formatNumber

public static String formatNumber(Object obj,
                                  String format)
格式化数字

参数:
obj -
返回:
抛出:
NumberFormatException

formatDate

public static String formatDate(Object obj,
                                String format)
格式化时间

参数:
obj -
返回:

isTrue

public static boolean isTrue(Object first,
                             String operator,
                             Object second)
判断是不是成功

参数:
first -
operator -
second -
返回:


Copyright © 2015. All Rights Reserved.