String errMsg = "";
int value = 0;
String applyIfValang = null;
if (a instanceof MaxLength) {
MaxLength annotation = (MaxLength) a;
errMsg = messages.getMessage(annotation.errorCode(), annotation.message());
value = annotation.value();
applyIfValang = valangToJS(annotation.applyIf());
} else if (a instanceof MaxSize) {
MaxSize annotation = (MaxSize) a;
errMsg = messages.getMessage(annotation.errorCode(), annotation.message());
value = annotation.value();
applyIfValang = valangToJS(annotation.applyIf());
}
StringBuffer sb = new StringBuffer();
sb.append(" function() {return this.lessThanOrEquals((this.lengthOf(this.getPropertyValue(");
sb.append(wrapAndEscapeJsString(fieldName));// field