package com.frameworkset.common.tag.pager.tags; import com.frameworkset.util.RegexUtil; /** * 逻辑匹配标签, * 判断当前的值是否和pattern属性对应正则表达式相匹配,匹配则执行标签体中的代码 * 否则不执行 * <p>Title: LogicRexMatchTag</p> * * <p>Description: </p> * * <p>Copyright: Copyright (c) 2006</p> * * <p>Company: 长沙科创计算机系统集成有限公司</p> * @Date 2007-12-6 20:18:52 * @author biaoping.yin * @version 1.0 */ public class LogicRexMatchTag extends MatchTag { protected boolean match() { if(actualValue == null) return false; if(RegexUtil.isMatch(String.valueOf(actualValue),pattern)) return true; else return false; } }