Examples of maxLength()


Examples of net.sourceforge.stripes.validation.ValidationMetadata.maxlength()

                    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:")
                            .append(data.maxlength());
                if (data.minvalue() != null)
                    fieldInfo.append(fieldInfo.length() > 0 ? "," : "").append("minvalue:").append(
                            data.minvalue());
View Full Code Here

Examples of net.sourceforge.stripes.validation.ValidationMetadata.maxlength()

                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:")
                            .append(data.maxlength());
                if (data.minvalue() != null)
                    fieldInfo.append(fieldInfo.length() > 0 ? "," : "").append("minvalue:").append(
                            data.minvalue());
                if (data.maxvalue() != null)
                    fieldInfo.append(fieldInfo.length() > 0 ? "," : "").append("maxvalue:").append(
View Full Code Here

Examples of net.sourceforge.stripes.validation.ValidationMetadata.maxlength()

                    fieldInfo.append(",mask:").append("new RegExp(")
                            .append(JavaScriptBuilder.quote("^" + data.mask().toString() + "$"))
                            .append(")");
                if (data.minlength() != null)
                    fieldInfo.append(",minlength:").append(data.minlength());
                if (data.maxlength() != null)
                    fieldInfo.append(",maxlength:").append(data.maxlength());
                if (data.minvalue() != null)
                    fieldInfo.append(",minvalue:").append(data.minvalue());
                if (data.maxvalue() != null)
                    fieldInfo.append(",maxvalue:").append(data.maxvalue());
View Full Code Here

Examples of net.sourceforge.stripes.validation.ValidationMetadata.maxlength()

                            .append(JavaScriptBuilder.quote("^" + data.mask().toString() + "$"))
                            .append(")");
                if (data.minlength() != null)
                    fieldInfo.append(",minlength:").append(data.minlength());
                if (data.maxlength() != null)
                    fieldInfo.append(",maxlength:").append(data.maxlength());
                if (data.minvalue() != null)
                    fieldInfo.append(",minvalue:").append(data.minvalue());
                if (data.maxvalue() != null)
                    fieldInfo.append(",maxvalue:").append(data.maxvalue());
View Full Code Here

Examples of net.sourceforge.stripes.validation.ValidationMetadata.maxlength()

                    fieldInfo.append(",mask:").append("new RegExp(")
                            .append(JavaScriptBuilder.quote("^" + data.mask().toString() + "$"))
                            .append(")");
                if (data.minlength() != null)
                    fieldInfo.append(",minlength:").append(data.minlength());
                if (data.maxlength() != null)
                    fieldInfo.append(",maxlength:").append(data.maxlength());
                if (data.minvalue() != null)
                    fieldInfo.append(",minvalue:").append(data.minvalue());
                if (data.maxvalue() != null)
                    fieldInfo.append(",maxvalue:").append(data.maxvalue());
View Full Code Here

Examples of net.sourceforge.stripes.validation.ValidationMetadata.maxlength()

                            .append(JavaScriptBuilder.quote("^" + data.mask().toString() + "$"))
                            .append(")");
                if (data.minlength() != null)
                    fieldInfo.append(",minlength:").append(data.minlength());
                if (data.maxlength() != null)
                    fieldInfo.append(",maxlength:").append(data.maxlength());
                if (data.minvalue() != null)
                    fieldInfo.append(",minvalue:").append(data.minvalue());
                if (data.maxvalue() != null)
                    fieldInfo.append(",maxvalue:").append(data.maxvalue());
View Full Code Here

Examples of org.h2.jaqu.Table.JQColumn.maxLength()

                if (!StringUtils.isNullOrEmpty(col.name())) {
                    columnName = col.name();
                }
                isAutoIncrement = col.autoIncrement();
                isPrimaryKey = col.primaryKey();
                maxLength = col.maxLength();
                trimString = col.trimString();
                allowNull = col.allowNull();
                defaultValue = col.defaultValue();
            }
            boolean isPublic = Modifier.isPublic(f.getModifiers());
View Full Code Here

Examples of org.internna.iwebmvc.core.validation.annotation.CollectionConstraint.maxLength()

                            i++;
                        }
                        errors.addAll(deepErrors);
                    }
                    if (col.size() < collectionConstraint.minLength()) errors.add(new ValidationError(field.getName(), errorCodes[2], collectionConstraint, collection));
                    if (col.size() > collectionConstraint.maxLength()) errors.add(new ValidationError(field.getName(), errorCodes[3], collectionConstraint, collection));
                } else {
                    throw new IllegalArgumentException("The annotated element is not a collection [" + collection + "]");
                }
            }
        }
View Full Code Here

Examples of org.internna.iwebmvc.core.validation.annotation.StringConstraint.maxLength()

                }
            }
            if ((object != null) & (stringConstraint.minLength() > 0)) {
                if (object.toString().length() < stringConstraint.minLength()) errors.add(new ValidationError(field.getName(), errorCodes[2], stringConstraint, object));
            }
            if ((object != null) & (stringConstraint.maxLength() > 0)) {
                if (object.toString().length() > stringConstraint.maxLength()) errors.add(new ValidationError(field.getName(), errorCodes[3], stringConstraint, object));
            }
        }
        return errors;
    }
View Full Code Here

Examples of org.internna.iwebmvc.core.validation.annotation.StringConstraint.maxLength()

            }
            if ((object != null) & (stringConstraint.minLength() > 0)) {
                if (object.toString().length() < stringConstraint.minLength()) errors.add(new ValidationError(field.getName(), errorCodes[2], stringConstraint, object));
            }
            if ((object != null) & (stringConstraint.maxLength() > 0)) {
                if (object.toString().length() > stringConstraint.maxLength()) errors.add(new ValidationError(field.getName(), errorCodes[3], stringConstraint, object));
            }
        }
        return errors;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.