Package org.strecks.validator.annotation

Examples of org.strecks.validator.annotation.ValidateMaxLength


public class ValidateMaxLengthFactory extends BaseFactory
{

  public ValidatorWrapper create(Annotation annot, Method method)
  {
    ValidateMaxLength annotation = (ValidateMaxLength) annot;
    MaxLengthValidator validator = new MaxLengthValidator();
    validator.setLength(annotation.maxLength());

    List<Object> parameters = new ArrayList<Object>();
    parameters.add(annotation.maxLength());

    return create(validator, annotation.key(), annotation.order(), parameters, method);
  }
View Full Code Here

TOP

Related Classes of org.strecks.validator.annotation.ValidateMaxLength

Copyright © 2018 www.massapicom. 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.