if (data.trim())
fieldInfo.append(fieldInfo.length() > 0 ? "," : "").append("trim:").append(
data.trim());
if (data.mask() != null)
fieldInfo.append(fieldInfo.length() > 0 ? "," : "").append("mask:")
.append("/^").append(data.mask()).append("$/");
if (data.minlength() != null)
fieldInfo.append(fieldInfo.length() > 0 ? "," : "").append("minlength:")
.append(data.minlength());
if (data.maxlength() != null)
fieldInfo.append(fieldInfo.length() > 0 ? "," : "").append("maxlength:")