StringBuffer sb = new StringBuffer();
sb.append(" function() {return this.between(this.getPropertyValue(");
sb.append(wrapAndEscapeJsString(fieldName));// field
sb.append("), (new Array(");
sb.append(annotation.min());
sb.append(',');
sb.append(annotation.max());
sb.append(") ))}");
return buildBasicRule(fieldName, errMsg, sb.toString(), applyIfValang, a);