com.avaje.ebean.validation.factory
Class LengthValidatorFactory

java.lang.Object
  extended by com.avaje.ebean.validation.factory.LengthValidatorFactory
All Implemented Interfaces:
ValidatorFactory

public final class LengthValidatorFactory
extends Object

    
implements ValidatorFactory

    

Creates a String length validator.


Nested Class Summary
static class LengthValidatorFactory.LengthValidator
          The actual length validator.
 
Constructor Summary
LengthValidatorFactory()
           
 
Method Summary
 Validator create(Annotation annotation, Class<?> type)
          Create the validator given the annotation.
static Validator create(int min, int max)
          Create or get a LengthValidator single threaded.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LengthValidatorFactory

public LengthValidatorFactory()
Method Detail

create

public Validator create(Annotation annotation,
                        Class<?> type)
Description copied from interface: ValidatorFactory
Create the validator given the annotation.

Specified by:
create in interface ValidatorFactory

create

public static Validator create(int min,
                               int max)
Create or get a LengthValidator single threaded.



Copyright © 2010. All Rights Reserved.