/** * Plug-in functions for basic validation and conditional processing. */ public class Check2 { public Check2() { } /** * Check input data value is NOT equal parameter. */ public Boolean isNotEqualTo(Integer id, String strData, String strParameters) { // perform condition checking here return Boolean.TRUE; } /** * Check input data value is NOT Null. */ public Boolean isNotNull(Integer id, String strData, String strParameters) { if (strData == null) return Boolean.FALSE; return Boolean.TRUE; } /** * Check input data value is NOT Empty. */ public Boolean isNotEmpty(Integer id, String strData, String strParameters) { if (strData == null) throw new RuntimeException("Data is null"); strData = strData.trim(); if (strData.length() == 0) return Boolean.FALSE; return Boolean.TRUE; } }